Changeset 10 for simplerunner/src/test/java
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.