Ignore:
Timestamp:
01/28/20 10:19:54 (5 years ago)
Author:
bart
Message:

Update 28 jan 2020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • party/src/test/java/geniusweb/party/CapabilitiesTest.java

    r1 r10  
    44
    55import java.io.IOException;
    6 import java.net.URI;
    76import java.net.URISyntaxException;
    87import java.util.Arrays;
     
    1817import com.fasterxml.jackson.databind.ObjectMapper;
    1918
    20 import geniusweb.party.Capabilities;
    21 import geniusweb.references.ProtocolRef;
    2219import tudelft.utilities.junit.GeneralTests;
    2320
     
    2623        private Capabilities capabilities1, capabilities1a, capabilities2,
    2724                        capabilities3;
    28         private String asJson = "{\"protocols\":[\"ws:localhost/protocol1\"]}";
     25        private String asJson = "{\"behaviours\":[\"SAOP\"]}";
    2926
    3027        @Before
    3128        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"));
    4033        }
    4134
     
    4841        @Override
    4942        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.*");
    5446        }
    5547
Note: See TracChangeset for help on using the changeset viewer.