diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-02-14 15:28:27 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-02-14 14:16:45 +0000 |
commit | dca70fbe80f15a0c259916c40a073c6b7edf11c8 (patch) | |
tree | 9f152d06481eeb6a3c92ca3ea92470aa625ea8e7 /appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src | |
parent | b186a6a5c746c660a885492f421c29224f56b310 (diff) |
added test case to ProviderOperationFactoryTest
to increase code coverage
Issue-ID: APPC-1086
Change-Id: Ic6f8fcebd31b111fdfc194e55bc74f8d8ac6f1fa
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src')
-rw-r--r-- | appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/api/ProviderOperationFactoryTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/api/ProviderOperationFactoryTest.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/api/ProviderOperationFactoryTest.java index abfa13274..2cd73931d 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/api/ProviderOperationFactoryTest.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/provider/operation/api/ProviderOperationFactoryTest.java @@ -4,6 +4,8 @@ * ================================================================================ * Copyright (C) 2018 Nokia Intellectual Property. All rights reserved. * ============================================================================= + * Modifications Copyright (C) 2019 IBM. + * ============================================================================= * 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 @@ -38,12 +40,14 @@ import static org.onap.appc.adapter.iaas.provider.operation.common.enums.Operati import org.junit.Assert; import org.junit.Test; +import org.onap.appc.adapter.iaas.provider.operation.common.enums.Operation; import org.onap.appc.adapter.iaas.provider.operation.impl.AttachVolumeServer; import org.onap.appc.adapter.iaas.provider.operation.impl.CreateSnapshot; import org.onap.appc.adapter.iaas.provider.operation.impl.DettachVolumeServer; import org.onap.appc.adapter.iaas.provider.operation.impl.EvacuateServer; import org.onap.appc.adapter.iaas.provider.operation.impl.LookupServer; import org.onap.appc.adapter.iaas.provider.operation.impl.MigrateServer; +import org.onap.appc.adapter.iaas.provider.operation.impl.RebootServer; import org.onap.appc.adapter.iaas.provider.operation.impl.RebuildServer; import org.onap.appc.adapter.iaas.provider.operation.impl.RestartServer; import org.onap.appc.adapter.iaas.provider.operation.impl.RestoreStack; @@ -191,5 +195,14 @@ public class ProviderOperationFactoryTest { Assert.assertTrue(operation instanceof DettachVolumeServer); } + + @Test + public void should_return_reboot_service_operation() throws APPCException { + IProviderOperation operation = ProviderOperationFactory + .getInstance() + .getOperationObject(Operation.REBOOT_SERVICE); + + Assert.assertTrue(operation instanceof RebootServer); + } }
\ No newline at end of file |