From 6a414c95c6d09bd6246b60023834c0c0c0286be2 Mon Sep 17 00:00:00 2001 From: j00302280 Date: Mon, 10 Oct 2016 18:02:14 +0800 Subject: Resolve the Bug GSO-9 for add new files Change-Id: Id076b732cd4ed68ff47805e90031021193e7162b Signed-off-by: j00302280 --- .../servicegateway/activator/ActivatorTest.java | 30 +++++++++++++++++++ .../gui/servicegateway/testsuite/SuiteSGTest.java | 35 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/activator/ActivatorTest.java create mode 100644 servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/testsuite/SuiteSGTest.java diff --git a/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/activator/ActivatorTest.java b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/activator/ActivatorTest.java new file mode 100644 index 00000000..96ea5701 --- /dev/null +++ b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/activator/ActivatorTest.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2016, Huawei Technologies Co., Ltd. + * + * 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. + */ +package org.openo.gso.gui.servicegateway.activator; + +import org.junit.Test; + +public class ActivatorTest +{ + @Test + public void test() throws Exception + { + Activator activator = new Activator(); + activator.start(); + activator.stop(); + } + +} diff --git a/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/testsuite/SuiteSGTest.java b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/testsuite/SuiteSGTest.java new file mode 100644 index 00000000..9223df67 --- /dev/null +++ b/servicegateway/service/src/test/java/org/openo/gso/gui/servicegateway/testsuite/SuiteSGTest.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2016, Huawei Technologies Co., Ltd. + * + * 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. + */ +package org.openo.gso.gui.servicegateway.testsuite; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.openo.gso.gui.servicegateway.activator.ActivatorTest; +import org.openo.gso.gui.servicegateway.exception.HttpCodeTest; +import org.openo.gso.gui.servicegateway.roa.impl.ServiceGatewayRoaModuleImplTest; +import org.openo.gso.gui.servicegateway.service.impl.ServiceGatewayImplTest; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + ActivatorTest.class, + ServiceGatewayImplTest.class, + HttpCodeTest.class, + ServiceGatewayRoaModuleImplTest.class + +}) +public class SuiteSGTest { + +} -- cgit 1.2.3-korg