use of com.emc.metalnx.core.domain.entity.DataGridServer in project metalnx-web by irods-contrib.
the class TestPluginService method setUp.
@Before
public void setUp() throws JargonException, DataGridException {
MockitoAnnotations.initMocks(this);
DataGridServer s1 = new DataGridServer();
s1.setHostname("server1.test.com");
s1.setMSIVersion(msiVersion);
s1.setIp("192.168.0.1");
s1.setResources(new ArrayList<>());
DataGridServer s2 = new DataGridServer();
s2.setHostname("server2.test.com");
s2.setMSIVersion(msiVersion);
s2.setIp("192.168.0.2");
s2.setResources(new ArrayList<>());
servers.add(s1);
servers.add(s2);
when(mockResourceService.getAllResourceServers(anyListOf(DataGridResource.class))).thenReturn(servers);
when(mockRuleService.execGetVersionRule(anyString())).thenReturn(msiVersion);
when(mockRuleService.execGetMSIsRule(anyString())).thenReturn(msiList);
when(mockConfigService.getMlxMSIsExpected()).thenReturn(mlxMSIList);
when(mockConfigService.getIrods41MSIsExpected()).thenReturn(irods41XMSIs);
when(mockConfigService.getIrods42MSIsExpected()).thenReturn(irods42MSIs);
when(mockConfigService.getOtherMSIsExpected()).thenReturn(otherMSIList);
when(mockConfigService.getMsiAPIVersionSupported()).thenReturn(msiVersion);
}
Aggregations