Commits

Sam Adams  committed 707cda4

Fixed DepositItem test

  • Participants
  • Parent commits f3157fa

Comments (0)

Files changed (1)

File src/test/java/net/chempound/client/cli/ChempoundClientCLIIntegrationTest.java

         FileUtils.writeStringToFile(new File(tmpDir, "wibble.txt"), "wibble");
 
         client.runMain("-R", "http://localhost:12080/repo/sword/collection/", "--cwd", tmpDir.getAbsolutePath(),
-                "deposit", "-s", "foobar", "wibble.txt");
+                "deposit", "-s", "foobaz", "wibble.txt");
 
         assertTrue(tripleStore.containsTriple(createResource("http://localhost:12080/repo/content/"), type, Collection));
-        assertTrue(tripleStore.containsTriple(createResource("http://localhost:12080/repo/content/"), ORE.aggregates, createResource("http://localhost:12080/repo/content/foobar/")));
-        assertTrue(tripleStore.containsTriple(createResource("http://localhost:12080/repo/content/foobar/"), ORE.aggregates, createResource("http://localhost:12080/repo/content/foobar/wibble.txt")));
+        assertTrue(tripleStore.containsTriple(createResource("http://localhost:12080/repo/content/"), ORE.aggregates, createResource("http://localhost:12080/repo/content/foobaz/")));
+        assertTrue(tripleStore.containsTriple(createResource("http://localhost:12080/repo/content/foobaz/"), ORE.aggregates, createResource("http://localhost:12080/repo/content/foobaz/wibble.txt")));
     }
 
     @Test