2

升级到 GAE (Java) 1.7.3 时,此测试开始针对本地 GAE 实例失败:

@Test
public void testStats() throws Exception {
   AppEngineFile file = service.createNewBlobFile("text/plain", "records123.txt");
   writeToFileAndFinalize(file, "This is content.");
   FileStat stat = service.stat(file);
   Assert.assertNotNull(stat);
   Assert.assertTrue(stat.isFinalized());
   Assert.assertEquals("records123.txt", stat.getFilename());
   Assert.assertTrue(stat.getLength() > 0);
}

失败的测试:testStats(org.jboss.test.capedwarf.files.test.FilesTestCase):预期:<[records123.txt]> 但是是:<[/blobstore/writable:R45VqzenfR-tGfHPVFWa-A]>

错误或功能?

4

0 回答 0