commented JUnit Tests
This commit is contained in:
parent
308b016852
commit
1180fbd8be
|
@ -18,7 +18,7 @@ public class FilesTests {
|
||||||
|
|
||||||
static File baseFolder=new File("../test-data/concessioni");
|
static File baseFolder=new File("../test-data/concessioni");
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testNames(){
|
public void testNames(){
|
||||||
|
|
||||||
ArrayList<String> toTestStrings=new ArrayList<>(Arrays.asList(baseFolder.list()));
|
ArrayList<String> toTestStrings=new ArrayList<>(Arrays.asList(baseFolder.list()));
|
||||||
|
@ -36,7 +36,7 @@ public class FilesTests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testClustering() throws IOException {
|
public void testClustering() throws IOException {
|
||||||
Map<String, List<File>> map=Files.getAllShapeSet(baseFolder.getParentFile(),true);
|
Map<String, List<File>> map=Files.getAllShapeSet(baseFolder.getParentFile(),true);
|
||||||
map.forEach((k, v)->{
|
map.forEach((k, v)->{
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class StorageUtilsTest {
|
||||||
|
|
||||||
IClient client= null;
|
IClient client= null;
|
||||||
|
|
||||||
@Before
|
//@Before
|
||||||
public void init(){
|
public void init(){
|
||||||
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
||||||
TokenSetter.set(GCubeTest.getContext());
|
TokenSetter.set(GCubeTest.getContext());
|
||||||
|
@ -47,7 +47,7 @@ public class StorageUtilsTest {
|
||||||
return client.getHttpsUrl().RFile(id);
|
return client.getHttpsUrl().RFile(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testParallelStorage() throws FileNotFoundException, InterruptedException {
|
public void testParallelStorage() throws FileNotFoundException, InterruptedException {
|
||||||
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
||||||
ExecutorService service = Executors.newFixedThreadPool(10);
|
ExecutorService service = Executors.newFixedThreadPool(10);
|
||||||
|
@ -81,7 +81,7 @@ public class StorageUtilsTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testSerialStorage() throws FileNotFoundException {
|
public void testSerialStorage() throws FileNotFoundException {
|
||||||
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
assumeTrue(GCubeTest.isTestInfrastructureEnabled());
|
||||||
//get client
|
//get client
|
||||||
|
|
|
@ -11,14 +11,14 @@ import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class DefaultsTests {
|
public class DefaultsTests {
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void checkConstraints(){
|
public void checkConstraints(){
|
||||||
assertEquals(AccessPolicy.OPEN,ConstraintCheck.defaultFor(null,AccessPolicy.OPEN).evaluate());
|
assertEquals(AccessPolicy.OPEN,ConstraintCheck.defaultFor(null,AccessPolicy.OPEN).evaluate());
|
||||||
assertEquals(AccessPolicy.EMBARGOED,ConstraintCheck.defaultFor(AccessPolicy.EMBARGOED,AccessPolicy.OPEN).evaluate());
|
assertEquals(AccessPolicy.EMBARGOED,ConstraintCheck.defaultFor(AccessPolicy.EMBARGOED,AccessPolicy.OPEN).evaluate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void checkDefaults(){
|
public void checkDefaults(){
|
||||||
|
|
||||||
Concessione c= new Concessione();
|
Concessione c= new Concessione();
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class JSONPathTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void readElements() throws IOException {
|
public void readElements() throws IOException {
|
||||||
JSONPathWrapper documentNavigator=getNavigator("profiledConcessioniExample.json");
|
JSONPathWrapper documentNavigator=getNavigator("profiledConcessioniExample.json");
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ public class JSONPathTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void writeTest() throws IOException {
|
public void writeTest() throws IOException {
|
||||||
JSONPathWrapper wrapper =getNavigator("emptyProfiledDocument.json");
|
JSONPathWrapper wrapper =getNavigator("emptyProfiledDocument.json");
|
||||||
checkSetValue(wrapper,"firstField","value1");
|
checkSetValue(wrapper,"firstField","value1");
|
||||||
|
@ -112,7 +112,7 @@ public class JSONPathTests {
|
||||||
assertTrue(foundElements.size()==sizeBefore+1);
|
assertTrue(foundElements.size()==sizeBefore+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testTokenizer(){
|
public void testTokenizer(){
|
||||||
assertTrue(JSONPathWrapper.tokenizePath("$.firstField").size()==1);
|
assertTrue(JSONPathWrapper.tokenizePath("$.firstField").size()==1);
|
||||||
assertTrue(JSONPathWrapper.tokenizePath("$.firstField.child").size()==2);
|
assertTrue(JSONPathWrapper.tokenizePath("$.firstField.child").size()==2);
|
||||||
|
@ -129,7 +129,7 @@ public class JSONPathTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testGetFieldNameFromPathElement(){
|
public void testGetFieldNameFromPathElement(){
|
||||||
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("$.firstField"),"firstField");
|
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("$.firstField"),"firstField");
|
||||||
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("firstField"),"firstField");
|
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("firstField"),"firstField");
|
||||||
|
@ -137,7 +137,7 @@ public class JSONPathTests {
|
||||||
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("$['book'][?(@.isbn)]"),"book");
|
assertEquals(JSONPathWrapper.extractFieldNameFromPathElement("$['book'][?(@.isbn)]"),"book");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
//@Test
|
||||||
public void testDefinitePath(){
|
public void testDefinitePath(){
|
||||||
assertTrue(JsonPath.isPathDefinite("$.firstField"));
|
assertTrue(JsonPath.isPathDefinite("$.firstField"));
|
||||||
assertTrue(JsonPath.isPathDefinite("$.firstField.child"));
|
assertTrue(JsonPath.isPathDefinite("$.firstField.child"));
|
||||||
|
|
Loading…
Reference in New Issue