diff options
author | 2016-10-24 11:13:00 +0800 | |
---|---|---|
committer | 2016-10-24 11:13:00 +0800 | |
commit | e366e9da3eec5de359ef6d3450438f2d5c9fd97b (patch) | |
tree | 47c4e49c85c2c645bbf33cd9aa951534db7df026 /catalog-core/catalog-mgr/src/test | |
parent | 8c845695a6807a7455597a825ef66dc51228f938 (diff) |
Add log information.
Change status of Service template from usage State to operation status.
Change-Id: I6c6df768ecb7b996cbbf484b5afd1a896bc74130
Issue-id: TOSCA-122
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'catalog-core/catalog-mgr/src/test')
-rw-r--r-- | catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java b/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java index 175c1d80..7087b220 100644 --- a/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java +++ b/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/ServiceTemplateWrapperTest.java @@ -45,6 +45,7 @@ import org.openo.commontosca.catalog.db.resource.PackageManager; import org.openo.commontosca.catalog.db.resource.TemplateManager; import org.openo.commontosca.catalog.db.util.H2DbServer; import org.openo.commontosca.catalog.db.util.HibernateSession; +import org.openo.commontosca.catalog.entity.EnumOperationalState; import org.openo.commontosca.catalog.model.entity.InputParameter; import org.openo.commontosca.catalog.model.entity.NodeTemplate; import org.openo.commontosca.catalog.model.entity.OutputParameter; @@ -151,8 +152,8 @@ public class ServiceTemplateWrapperTest { ServiceTemplate[] result1 = serviceTemplateWrapper.getServiceTemplates(null, false); assertEquals(expectResult, result1); - ServiceTemplate[] result2 = serviceTemplateWrapper.getServiceTemplates("InUse", false); - assertEquals(expectResult, result2); + ServiceTemplate[] result2 = serviceTemplateWrapper.getServiceTemplates(EnumOperationalState.Enabled, false); + assertEquals(new ServiceTemplate[0], result2); } @Test |