From: SVN c. m. f. t. SWORD-A. p. <swo...@li...> - 2012-03-24 12:50:40
|
Revision: 484 http://sword-app.svn.sourceforge.net/sword-app/?rev=484&view=rev Author: richard-jones Date: 2012-03-24 12:50:34 +0000 (Sat, 24 Mar 2012) Log Message: ----------- add enhanced authentication and mediated deposit testing Modified Paths: -------------- JavaClient2.0/src/test/java/org/swordapp/client/test/SSSSemiUnits.java Modified: JavaClient2.0/src/test/java/org/swordapp/client/test/SSSSemiUnits.java =================================================================== --- JavaClient2.0/src/test/java/org/swordapp/client/test/SSSSemiUnits.java 2012-03-24 11:56:14 UTC (rev 483) +++ JavaClient2.0/src/test/java/org/swordapp/client/test/SSSSemiUnits.java 2012-03-24 12:50:34 UTC (rev 484) @@ -12,6 +12,7 @@ import org.swordapp.client.SWORDClient; import org.swordapp.client.SWORDCollection; import org.swordapp.client.SWORDWorkspace; +import org.swordapp.client.ServerResource; import org.swordapp.client.ServiceDocument; import org.swordapp.client.Statement; import org.swordapp.client.UriRegistry; @@ -179,6 +180,16 @@ assertEquals(statement.getOriginalDeposits().size(), 1); assertEquals(statement.getParts().size(), 5); assertEquals(statement.getState().size(), 1); + + List<ServerResource> ods = statement.getOriginalDeposits(); + boolean checked = false; + for (ServerResource od : ods) + { + assertEquals(od.getDepositedBy(), this.user); + assertEquals(od.getDepositedOnBehalfOf(), this.obo); + checked = true; + } + assertTrue(checked); } @Test @@ -209,5 +220,15 @@ assertEquals(statement.getOriginalDeposits().size(), 1); assertEquals(statement.getParts().size(), 5); assertEquals(statement.getState().size(), 1); + + List<ServerResource> ods = statement.getOriginalDeposits(); + boolean checked = false; + for (ServerResource od : ods) + { + assertEquals(od.getDepositedBy(), this.user); + assertEquals(od.getDepositedOnBehalfOf(), this.obo); + checked = true; + } + assertTrue(checked); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |