Changeset 10 for party/src/test/java
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
party/src/test/java/geniusweb/party/CapabilitiesTest.java
r1 r10 4 4 5 5 import java.io.IOException; 6 import java.net.URI;7 6 import java.net.URISyntaxException; 8 7 import java.util.Arrays; … … 18 17 import com.fasterxml.jackson.databind.ObjectMapper; 19 18 20 import geniusweb.party.Capabilities;21 import geniusweb.references.ProtocolRef;22 19 import tudelft.utilities.junit.GeneralTests; 23 20 … … 26 23 private Capabilities capabilities1, capabilities1a, capabilities2, 27 24 capabilities3; 28 private String asJson = "{\" protocols\":[\"ws:localhost/protocol1\"]}";25 private String asJson = "{\"behaviours\":[\"SAOP\"]}"; 29 26 30 27 @Before 31 28 public void before() throws URISyntaxException { 32 capabilities1 = new Capabilities(Sets 33 .newSet(new ProtocolRef(new URI("ws:localhost/protocol1")))); 34 capabilities1a = new Capabilities(Sets 35 .newSet(new ProtocolRef(new URI("ws:localhost/protocol1")))); 36 capabilities2 = new Capabilities(Sets 37 .newSet(new ProtocolRef(new URI("ws:localhost/protocol2")))); 38 capabilities3 = new Capabilities(Sets 39 .newSet(new ProtocolRef(new URI("ws:localhost/protocol3")))); 29 capabilities1 = new Capabilities(Sets.newSet("SAOP")); 30 capabilities1a = new Capabilities(Sets.newSet("SAOP")); 31 capabilities2 = new Capabilities(Sets.newSet("SEB")); 32 capabilities3 = new Capabilities(Sets.newSet("SEB", "SAOP")); 40 33 } 41 34 … … 48 41 @Override 49 42 public List<String> getGeneralTestStrings() { 50 return Arrays.asList( 51 "Capabilities.*Protocols=.*ProtocolRef.*protocol1.*", 52 "Capabilities.*Protocols=.*ProtocolRef.*protocol2.*", 53 "Capabilities.*Protocols=.*ProtocolRef.*protocol3.*"); 43 return Arrays.asList("Capabilities.*Behaviours=.*SAOP.*", 44 "Capabilities.*Behaviours=.*SEB.*", 45 "Capabilities.*Behaviours=.*SEB.*SAOP.*"); 54 46 } 55 47
Note:
See TracChangeset
for help on using the changeset viewer.