to increase code coverage
Issue-ID: APPC-1086
Change-Id: Idf3acce4be6e950524d342466ee523b9b57b5b2c
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
- * Copyright (C) 2019 IBM.
+ * 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.
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
ModelObject mo = rbs.executeProviderOperation(mg.getParams(), mg.getSvcLogicContext());
verify(mg.getSvcLogicContext(), atLeastOnce()).setAttribute(Constants.STATUS_OF_VM, "ready");
}
ModelObject mo = rbs.executeProviderOperation(mg.getParams(), mg.getSvcLogicContext());
verify(mg.getSvcLogicContext(), atLeastOnce()).setAttribute(Constants.STATUS_OF_VM, "ready");
}
+
+ @Test
+ public void vmPausedStatuscheckerError() throws APPCException {
+ MockGenerator mg = new MockGenerator(Status.PAUSED);
+ Server server = mg.getServer();
+ VmStatuschecker rbs = new VmStatuschecker();
+ rbs.setProviderCache(mg.getProviderCacheMap());
+ ModelObject mo = rbs.executeProviderOperation(mg.getParams(), mg.getSvcLogicContext());
+ verify(mg.getSvcLogicContext(), atLeastOnce()).setAttribute(Constants.STATUS_OF_VM, "paused");
+ }
}
\ No newline at end of file
}
\ No newline at end of file