diff options
author | 2016-08-24 17:55:22 +0800 | |
---|---|---|
committer | 2016-08-24 17:55:22 +0800 | |
commit | 5c16ff58fc795440b76c7bf724deba6e78366b86 (patch) | |
tree | 2c3018c63120d1475a4bbee7bfcca0e4fc4c67b1 /catalog-core/catalog-mgr/src/test | |
parent | 49302058ca6f43eb04d5cd5287aba012d489ebff (diff) |
Fix unit test issue
Change-Id: If42d15f2572c9005e61ca108ea7cdd0525771a31
Signed-off-by: huangjian <huang.jian12@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/PackageWrapperTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/PackageWrapperTest.java b/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/PackageWrapperTest.java index 066710c4..f41a8cf7 100644 --- a/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/PackageWrapperTest.java +++ b/catalog-core/catalog-mgr/src/test/java/org/openo/commontosca/catalog/wrapper/PackageWrapperTest.java @@ -44,6 +44,7 @@ import org.openo.commontosca.catalog.db.dao.DaoManager; import org.openo.commontosca.catalog.db.entity.PackageData;
import org.openo.commontosca.catalog.db.util.H2DbServer;
import org.openo.commontosca.catalog.db.util.HibernateSession;
+import org.openo.commontosca.catalog.entity.EnumOnboardState;
import org.openo.commontosca.catalog.entity.EnumOperationalState;
import org.openo.commontosca.catalog.entity.EnumProcessState;
import org.openo.commontosca.catalog.entity.EnumUsageState;
@@ -274,7 +275,7 @@ public class PackageWrapperTest { packageData.setFormat("yml");
packageData.setModifyTime("2016-06-29 03:33:15");
packageData.setName("NanocellGW");
- packageData.setOnBoardState("false");
+ packageData.setOnBoardState("non-onBoarded");
packageData.setOperationalState("Disabled");
packageData.setProvider("ZTE");
packageData.setSize("0.93M");
@@ -310,7 +311,7 @@ public class PackageWrapperTest { meta.setType("NSAR");
meta.setUsageState(EnumUsageState.valueOf("InUse"));
meta.setVersion("V1.0");
- meta.setOnBoardState("false");
+ meta.setOnBoardState(EnumOnboardState.nonOnBoarded.getValue());
meta.setProcessState(EnumProcessState.valueOf("normal"));
metas.add(meta);
return metas;
|