From f03e49cdf5c8d54733416ab244826b9429c9c86c Mon Sep 17 00:00:00 2001 From: "mark.j.leonard" Date: Wed, 6 Mar 2019 15:58:55 +0000 Subject: Remove redundant methods from codebase Delete methods that are never called (or only called from test code) Issue-ID: AAI-2212 Change-Id: I1554bd76de4a9ac2e3cc05987dac1d04966b9200 Signed-off-by: mark.j.leonard --- .../babel/service/TestGenerateArtifactsServiceImpl.java | 2 +- .../babel/xml/generator/model/TestGeneratorUtil.java | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'src/test') diff --git a/src/test/java/org/onap/aai/babel/service/TestGenerateArtifactsServiceImpl.java b/src/test/java/org/onap/aai/babel/service/TestGenerateArtifactsServiceImpl.java index be02e17..0673d04 100644 --- a/src/test/java/org/onap/aai/babel/service/TestGenerateArtifactsServiceImpl.java +++ b/src/test/java/org/onap/aai/babel/service/TestGenerateArtifactsServiceImpl.java @@ -73,7 +73,7 @@ public class TestGenerateArtifactsServiceImpl { @Test public void testGenerateArtifacts() throws Exception { Response response = processJsonRequest(CsarTest.VNF_VENDOR_CSAR); - assertThat(response.getStatus(), is(Response.Status.OK.getStatusCode())); + assertThat(response.toString(), response.getStatus(), is(Response.Status.OK.getStatusCode())); assertThat(response.getEntity(), is(getResponseJson("response.json"))); } diff --git a/src/test/java/org/onap/aai/babel/xml/generator/model/TestGeneratorUtil.java b/src/test/java/org/onap/aai/babel/xml/generator/model/TestGeneratorUtil.java index 9b5d05f..1fc5d13 100644 --- a/src/test/java/org/onap/aai/babel/xml/generator/model/TestGeneratorUtil.java +++ b/src/test/java/org/onap/aai/babel/xml/generator/model/TestGeneratorUtil.java @@ -49,23 +49,6 @@ public class TestGeneratorUtil { assertThat(result, is(EMPTY_BYTE_ARRAY)); } - @Test - public void shouldDecodeUsingBase64() { - byte[] input = Base64.getEncoder().encode(TEST_BYTES); - byte[] expected = Base64.getDecoder().decode(input); - - byte[] result = GeneratorUtil.decode(input); - - assertThat(result, is(expected)); - } - - @Test - public void shouldReturnEmptyByteArrayWhenNullPassedToDecode() { - byte[] result = GeneratorUtil.decode(null); - - assertThat(result, is(EMPTY_BYTE_ARRAY)); - } - @Test public void shouldReturnNullWhenNullPassedToCheckSum() { assertNull(GeneratorUtil.checkSum(null)); -- cgit 1.2.3-korg