コード例 #1
0
 @SuppressWarnings("unchecked")
 @Test
 public void checkStorageProcessorAndHandlerNfsVersionAttributeVersionSet() {
   _resource.storageNfsVersion = NFS_VERSION;
   _resource.checkStorageProcessorAndHandlerNfsVersionAttribute(storageCmd);
   verify(_resource, never())
       .examineStorageSubSystemCommandNfsVersion(Matchers.eq(storageCmd), any(EnumMap.class));
 }
コード例 #2
0
 @SuppressWarnings("unchecked")
 @Test
 public void checkStorageProcessorAndHandlerNfsVersionAttributeVersionNotSet() {
   _resource.checkStorageProcessorAndHandlerNfsVersionAttribute(storageCmd);
   verify(_resource)
       .examineStorageSubSystemCommandNfsVersion(Matchers.eq(storageCmd), any(EnumMap.class));
   verify(_resource)
       .examineStorageSubSystemCommandFullCloneFlagForVmware(
           Matchers.eq(storageCmd), any(EnumMap.class));
   verify(_resource).reconfigureProcessorByHandler(any(EnumMap.class));
   assertEquals(NFS_VERSION, _resource.storageNfsVersion);
 }