Changeset 9 for src/test/java/geniusweb
- Timestamp:
- 01/28/20 10:20:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/java/geniusweb/partiesserver/websocket/GeneralPartyInfoTest.java
r1 r9 18 18 import geniusweb.partiesserver.repository.GeneralPartyInfo; 19 19 import geniusweb.party.Capabilities; 20 import geniusweb.references.ProtocolRef;21 20 import tudelft.utilities.junit.GeneralTests; 22 21 … … 25 24 private URI iri1; 26 25 private URI iri2; 27 private HashSet protocols1;28 private HashSet protocols2;26 private HashSet<String> protocols1; 27 private HashSet<String> protocols2; 29 28 private Capabilities caps1; 30 29 private Capabilities caps2; … … 36 35 private GeneralPartyInfo info3; 37 36 private GeneralPartyInfo info4; 38 private String text1 = "GeneralPartyInfo.*iri1,Capabilities.* Protocols=.*ProtocolRef.*protocol1.*,description 1.*";39 private String text2 = "GeneralPartyInfo.*iri2,Capabilities.* Protocols=.*ProtocolRef.*protocol1.*,description 1.*";40 private String text3 = "GeneralPartyInfo.*iri1,Capabilities.* Protocols=.*ProtocolRef.*protocol2.*,description 1.*";41 private String text4 = "GeneralPartyInfo.*iri1,Capabilities.* Protocols=.*ProtocolRef.*protocol1.*,description 2.*";37 private String text1 = "GeneralPartyInfo.*iri1,Capabilities.*Behaviours=.*SAOP.*description 1.*"; 38 private String text2 = "GeneralPartyInfo.*iri2,Capabilities.*Behaviours=.*SAOP.*,description 1.*"; 39 private String text3 = "GeneralPartyInfo.*iri1,Capabilities.*Behaviours=.*SEB.*,description 1.*"; 40 private String text4 = "GeneralPartyInfo.*iri1,Capabilities.*Behaviours=.*SAOP.*,description 2.*"; 42 41 43 42 private final ObjectMapper jackson = new ObjectMapper(); 44 private String serialized = "{\"uri\":\"http://iri1\",\"capabilities\":{\" protocols\":[\"http://protocol1\"]},\"description\":\"description 1\"}";43 private String serialized = "{\"uri\":\"http://iri1\",\"capabilities\":{\"behaviours\":[\"SAOP\"]},\"description\":\"description 1\"}"; 45 44 46 45 @Before … … 48 47 iri1 = new URI("http://iri1"); 49 48 iri2 = new URI("http://iri2"); 50 protocols1 = new HashSet<>( 51 Arrays.asList(new ProtocolRef("http://protocol1"))); 52 protocols2 = new HashSet<>( 53 Arrays.asList(new ProtocolRef("http://protocol2"))); 49 protocols1 = new HashSet<>(Arrays.asList("SAOP")); 50 protocols2 = new HashSet<>(Arrays.asList("SEB")); 54 51 caps1 = new Capabilities(protocols1); 55 52 caps2 = new Capabilities(protocols2);
Note:
See TracChangeset
for help on using the changeset viewer.