use of nl.tudelft.watchdog.core.logic.network.ServerReturnCodeException in project watchdog by TestRoots.
the class NetworkUtilsTest method testIntervalTransfer.
@Test
@Ignore
public void testIntervalTransfer() {
JsonTransferer it = new JsonTransferer();
IntervalBase interval = new IDEOpenInterval(new Date());
ArrayList<WatchDogItem> intervals = createSampleIntervals(interval);
String json = it.toJson(intervals);
try {
NetworkUtils.transferJsonAndGetResponse(NetworkUtils.buildIntervalsPostURL(fooBarUser, fooBarProject), json);
} catch (ServerCommunicationException | ServerReturnCodeException e) {
fail(e.getMessage());
}
}
Aggregations