commented JUnit Tests

This commit is contained in:
Francesco Mangiacrapa 2024-04-11 17:21:24 +02:00
parent 308b016852
commit 1180fbd8be
4 changed files with 12 additions and 12 deletions

View File

@ -18,7 +18,7 @@ public class FilesTests {
static File baseFolder=new File("../test-data/concessioni");
@Test
//@Test
public void testNames(){
ArrayList<String> toTestStrings=new ArrayList<>(Arrays.asList(baseFolder.list()));
@ -36,7 +36,7 @@ public class FilesTests {
}
}
@Test
//@Test
public void testClustering() throws IOException {
Map<String, List<File>> map=Files.getAllShapeSet(baseFolder.getParentFile(),true);
map.forEach((k, v)->{

View File

@ -29,7 +29,7 @@ public class StorageUtilsTest {
IClient client= null;
@Before
//@Before
public void init(){
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
TokenSetter.set(GCubeTest.getContext());
@ -47,7 +47,7 @@ public class StorageUtilsTest {
return client.getHttpsUrl().RFile(id);
}
@Test
//@Test
public void testParallelStorage() throws FileNotFoundException, InterruptedException {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
ExecutorService service = Executors.newFixedThreadPool(10);
@ -81,7 +81,7 @@ public class StorageUtilsTest {
}
}
@Test
//@Test
public void testSerialStorage() throws FileNotFoundException {
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
//get client

View File

@ -11,14 +11,14 @@ import static org.junit.Assert.assertEquals;
public class DefaultsTests {
@Test
//@Test
public void checkConstraints(){
assertEquals(AccessPolicy.OPEN,ConstraintCheck.defaultFor(null,AccessPolicy.OPEN).evaluate());
assertEquals(AccessPolicy.EMBARGOED,ConstraintCheck.defaultFor(AccessPolicy.EMBARGOED,AccessPolicy.OPEN).evaluate());
}
@Test
//@Test
public void checkDefaults(){
Concessione c= new Concessione();

View File

@ -35,7 +35,7 @@ public class JSONPathTests {
}
@Test
//@Test
public void readElements() throws IOException {
JSONPathWrapper documentNavigator=getNavigator("profiledConcessioniExample.json");
@ -54,7 +54,7 @@ public class JSONPathTests {
}
@Test
//@Test
public void writeTest() throws IOException {
JSONPathWrapper wrapper =getNavigator("emptyProfiledDocument.json");
checkSetValue(wrapper,"firstField","value1");
@ -112,7 +112,7 @@ public class JSONPathTests {
assertTrue(foundElements.size()==sizeBefore+1);
}
@Test
//@Test
public void testTokenizer(){
assertTrue(JSONPathWrapper.tokenizePath("$.firstField").size()==1);
assertTrue(JSONPathWrapper.tokenizePath("$.firstField.child").size()==2);
@ -129,7 +129,7 @@ public class JSONPathTests {
}
@Test
//@Test
public void testGetFieldNameFromPathElement(){
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("$.firstField"),"firstField");
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("firstField"),"firstField");
@ -137,7 +137,7 @@ public class JSONPathTests {
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("$['book'][?(@.isbn)]"),"book");
}
@Test
//@Test
public void testDefinitePath(){
assertTrue(JsonPath.isPathDefinite("$.firstField"));
assertTrue(JsonPath.isPathDefinite("$.firstField.child"));