40 lines
899 B
Java
40 lines
899 B
Java
package org.gcube.portlets.admin.systemservicedefinition;
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.common.resources.gcore.GenericResource;
|
|
import org.gcube.portlets.admin.systemservicedefinition.is.InformationSystemUtils;
|
|
import org.gcube.portlets.admin.systemservicedefinition.shared.Constants;
|
|
import org.junit.Test;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi
|
|
*
|
|
*
|
|
*/
|
|
public class ISTest {
|
|
|
|
private static Logger logger = LoggerFactory.getLogger(ISTest.class);
|
|
|
|
@Test
|
|
public void findAlgoInVRE() {
|
|
|
|
try {
|
|
InformationSystemUtils.retrieveSSD(Constants.SYSTEM_SERVICE_CATEGORY, Constants.DEFAULT_SCOPE,
|
|
Constants.DEFAULT_TOKEN);
|
|
assertTrue(true);
|
|
|
|
} catch (Exception e) {
|
|
logger.error(e.getLocalizedMessage(), e);
|
|
assertTrue("Error searching the resource!", false);
|
|
}
|
|
|
|
}
|
|
|
|
} |