diff options
author | seshukm <seshu.kumar.m@huawei.com> | 2018-07-26 10:18:23 +0800 |
---|---|---|
committer | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-07-26 03:37:52 +0000 |
commit | 18538d7f1b2e9a2ea6528e88f9a5e6741d9b65af (patch) | |
tree | 96d3f52fad0a8cc1f6abff40e25b3eb3fb3b9bdd /aria/aria-rest-java-client/src | |
parent | d22cb667f5391cb8e5518dd0f38477c7fa717894 (diff) |
ARIA rest client test code removal
Issue-ID: SO-756
Change-Id: Id69fdf8879fc38e83dcfa864224c83cce1a61a4c
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'aria/aria-rest-java-client/src')
10 files changed, 0 insertions, 390 deletions
diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/AriaClientFactoryTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/AriaClientFactoryTest.java deleted file mode 100644 index 7082c0add0..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/AriaClientFactoryTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import org.junit.Test; - -public class AriaClientFactoryTest { - - @Test - public void test() { - AriaClientFactory acf=new AriaClientFactory(); - assert(acf!=null); - acf.createRestClient("https", "address", 9060, "V1"); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ExecutionDetailsTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ExecutionDetailsTest.java deleted file mode 100644 index 71933497bf..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ExecutionDetailsTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import static org.junit.Assert.*; -import java.util.Arrays; -import java.util.List; -import org.junit.Test; - -public class ExecutionDetailsTest { - -private Input inputs; -private ExecutionDetails ed; - -@Test - public void test() { - List<Input> actual = Arrays.asList(inputs); - ed= new ExecutionDetails("",30,30,false,actual); - ed=new ExecutionDetails(""); - ed.setExecutor(""); - ed.setInputs(actual); - ed.setTaskMaxAttempts(30); - ed.setTaskRetryInterval(30); - ed.setRetry_failed_tasks(false); - assert(ed.getExecutor()).equals(""); - assertFalse(ed.isRetry_failed_tasks()); - assert(ed.getInputs().equals(actual)); - assertEquals(30,ed.getTaskMaxAttempts()); - assertEquals(30,ed.getTaskRetryInterval()); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ExecutionImplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ExecutionImplTest.java deleted file mode 100644 index 75781f8933..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ExecutionImplTest.java +++ /dev/null @@ -1,37 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import org.junit.Test; - -public class ExecutionImplTest { - - @Test - public void testExecutionImpl() { - ExecutionImpl eil = new ExecutionImpl(); - - eil.getExecutionId(); - eil.getServiceName(); - eil.getServiceTemplateName(); - eil.getStatus(); - eil.getWorkflowName(); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/InputImpTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/InputImpTest.java deleted file mode 100644 index 533067a7e1..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/InputImpTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import org.junit.Test; - -public class InputImpTest { - private InputImpl ip; - - @Test - public void test() { - ip=new InputImpl("name","value","desc"); - assert(ip.getName().equals("name")); - assert(ip.getValue().equals("value")); - assert(ip.getDescription().equals("desc")); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/NodeTemplateImplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/NodeTemplateImplTest.java deleted file mode 100644 index b23e825ffb..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/NodeTemplateImplTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import static org.junit.Assert.*; -import org.junit.Test; - -public class NodeTemplateImplTest { - - private NodeTemplateImpl nti; - - @Test - public void test() { - nti=new NodeTemplateImpl(12, null, "desc", 12, "tname"); - assertEquals(12,nti.getId()); - assertEquals(12,nti.getServiceTemplateId()); - assertEquals(null,nti.getName()); - assertEquals("desc",nti.getDescription()); - assertEquals("tname",nti.getTypeName()); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/OutputImplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/OutputImplTest.java deleted file mode 100644 index f088572365..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/OutputImplTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import org.junit.Test; - -public class OutputImplTest { - - @Test - public void test() { - OutputImpl oil= new OutputImpl(); - oil.getDescription(); - oil.getName(); - oil.getValue(); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ServiceImplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ServiceImplTest.java deleted file mode 100644 index c289968187..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ServiceImplTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import org.junit.Test; - -public class ServiceImplTest { - - private ServiceImpl sil; - - @Test - public void test() { - sil=new ServiceImpl(); - sil.getId(); - sil.getDescription(); - sil.getName(); - sil.getServiceTemplate(); - sil.getUpdated(); - sil.getCreated(); - } - -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ServiceTemplateImplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ServiceTemplateImplTest.java deleted file mode 100644 index 92a71c4a67..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ServiceTemplateImplTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import static org.junit.Assert.*; - -import java.net.URI; - -import org.junit.Test; - -public class ServiceTemplateImplTest { - - private URI uri; - private byte[] csar_blob; - private ServiceTemplateImpl sti; - - @Test - public void test() { - sti=new ServiceTemplateImpl("name", uri, "filename", "description"); - ServiceTemplateImpl stid=new ServiceTemplateImpl("name", csar_blob); - ServiceTemplateImpl std=new ServiceTemplateImpl("name", uri); - sti.setFilename("filename"); - sti.setId(10); - sti.setName("name"); - sti.setPath("path"); - assertEquals(10,sti.getId()); - assertEquals("name",sti.getName()); - assertEquals(uri,sti.getURI()); - assertEquals("filename",sti.getFilename()); - assertEquals("description",sti.getDescription()); - assertEquals(csar_blob,stid.getCSARBytes()); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ValidationResultImplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ValidationResultImplTest.java deleted file mode 100644 index 1181fe67c0..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/ValidationResultImplTest.java +++ /dev/null @@ -1,38 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import static org.junit.Assert.*; -import org.junit.Test; - -public class ValidationResultImplTest { - - private boolean failed=false; - - private ValidationResultImpl vri; - - @Test - public void test() { - vri=new ValidationResultImpl(); - vri.setFailed(failed); - assertFalse(vri.getFailed()); - } -} diff --git a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/WorkflowimplTest.java b/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/WorkflowimplTest.java deleted file mode 100644 index fe5def8ff1..0000000000 --- a/aria/aria-rest-java-client/src/test/java/com/gigaspaces/aria/rest/client/WorkflowimplTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : SO -* ================================================================================ -* Copyright 2018 TechMahindra -*================================================================================= -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* ============LICENSE_END========================================================= -*/ - -package com.gigaspaces.aria.rest.client; - -import org.junit.Test; - -public class WorkflowimplTest { - - private WorkflowImpl wfi; - - @Test - public void test() { - wfi=new WorkflowImpl(); - wfi.getName(); - } -} |