FileStat行为在1.7.3中已更改

时间:2012-10-27 18:36:06

标签: java google-app-engine

升级到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):expected:< [records123.txt]>但是:< [/ blobstore / writable:R45VqzenfR-tGfHPVFWa-A]>

错误或功能?

0 个答案:

没有答案