Changeset 10 for simplerunner
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- Location:
- simplerunner
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
simplerunner/pom.xml
r9 r10 42 42 <artifactId>randomparty</artifactId> 43 43 <version>1.1.0</version> 44 <scope>test</scope> 45 </dependency> 46 <dependency> 47 <groupId>geniusweb.exampleparties</groupId> 48 <artifactId>comparebids</artifactId> 49 <version>1.0.0</version> 50 <scope>test</scope> 51 </dependency> 52 <dependency> 53 <groupId>geniusweb.exampleparties</groupId> 54 <artifactId>simpleshaop</artifactId> 55 <version>1.0.0</version> 44 56 <scope>test</scope> 45 57 </dependency> -
simplerunner/src/main/java/geniusweb/simplerunner/NegoRunner.java
r9 r10 14 14 import geniusweb.protocol.NegoSettings; 15 15 import geniusweb.protocol.partyconnection.ProtocolToPartyConnFactory; 16 import geniusweb.protocol.session.SessionSettings;17 16 import tudelft.utilities.logging.ReportToLogger; 18 17 import tudelft.utilities.logging.Reporter; … … 72 71 String serialized = new String(Files.readAllBytes(Paths.get(args[0])), 73 72 StandardCharsets.UTF_8); 74 SessionSettings settings = jackson.readValue(serialized,75 SessionSettings.class);73 NegoSettings settings = jackson.readValue(serialized, 74 NegoSettings.class); 76 75 77 76 NegoRunner runner = new NegoRunner(settings, -
simplerunner/src/test/java/geniusweb/simplerunner/SessionRunnerE2ETest.java
r2 r10 16 16 import com.fasterxml.jackson.databind.ObjectMapper; 17 17 18 import geniusweb.protocol. session.SessionSettings;18 import geniusweb.protocol.NegoSettings; 19 19 import tudelft.utilities.logging.ReportToLogger; 20 20 import tudelft.utilities.logging.Reporter; … … 34 34 @Parameters 35 35 public static Collection<Object[]> data() { 36 return Arrays.asList( 37 new Object[][] { { "src/test/resources/settings.json" }, { "src/test/resources/settings2.json" } }); 36 return Arrays 37 .asList(new Object[][] { { "src/test/resources/settings.json" }, 38 { "src/test/resources/settings2.json" }, 39 { "src/test/resources/shaoptoursettings.json" } }); 38 40 } 39 41 … … 44 46 @Before 45 47 public void before() throws IOException { 46 String serialized = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8); 47 SessionSettings settings = jackson.readValue(serialized, SessionSettings.class); 48 System.out.println("Running from file " + filename); 49 String serialized = new String(Files.readAllBytes(Paths.get(filename)), 50 StandardCharsets.UTF_8); 51 NegoSettings settings = jackson.readValue(serialized, 52 NegoSettings.class); 48 53 49 runner = new NegoRunner(settings, new ClassPathConnectionFactory(), logger); 54 runner = new NegoRunner(settings, new ClassPathConnectionFactory(), 55 logger); 50 56 51 57 }
Note:
See TracChangeset
for help on using the changeset viewer.