22 lines
542 B
Java
22 lines
542 B
Java
|
package org.gcube.application.geoportal.service.profiledDocuments;
|
||
|
|
||
|
import org.gcube.application.cms.tests.TestProfiles;
|
||
|
import org.junit.Test;
|
||
|
|
||
|
public class Profiles {
|
||
|
|
||
|
|
||
|
@Test
|
||
|
public void getFields(){
|
||
|
TestProfiles.profiles.forEach((k,v)->{
|
||
|
System.out.println(k+"\t"+v);
|
||
|
if(v.getSchema()!=null&&!v.getSchema().isLeaf()) {
|
||
|
v.getSchema().getChildren().forEach(
|
||
|
i -> System.out.println(i.getClass() + "\t" + i)
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|