- // This test requires a running Babel system. To test locally, annotate with org.junit.Test
- @Ignore
- public void testRestClient() throws Exception { // NOSONAR
+ {
+ List<BabelArtifact> response = new ArrayList<>();
+ response.add(new BabelArtifact("", null, ""));
+ response.add(new BabelArtifact("", null, ""));
+ response.add(new BabelArtifact("", null, ""));
+ responseBody = new Gson().toJson(response);
+ }
+
+ @Before
+ public void startJetty() throws Exception {
+ server = new Server(8080);
+ server.setHandler(getMockHandler());
+ server.start();
+ }
+
+ @After
+ public void stopJetty() throws Exception {
+ server.stop();
+ }
+
+ @Test
+ public void testRestClient() throws UnrecoverableKeyException, KeyManagementException, NoSuchAlgorithmException,
+ KeyStoreException, CertificateException, IOException, BabelServiceException, URISyntaxException {