Test
This commit is contained in:
parent
28bd1f8249
commit
2654e5d000
|
@ -0,0 +1,30 @@
|
|||
package org.gcube.application.geoportal.clients;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.beanutils.MutableDynaClass;
|
||||
import org.bson.Document;
|
||||
import org.gcube.application.cms.serialization.Serialization;
|
||||
import org.gcube.application.geoportal.common.model.JSONPathWrapper;
|
||||
import org.gcube.application.geoportal.common.model.profile.HandlerDeclaration;
|
||||
import org.gcube.application.geoportal.common.model.profile.Profile;
|
||||
|
||||
public class ProfiledConcessioniTest {
|
||||
|
||||
@Data
|
||||
private static class MyClass {
|
||||
private String field;
|
||||
}
|
||||
|
||||
|
||||
public void test(){
|
||||
|
||||
Profile p=null;
|
||||
|
||||
HandlerDeclaration h = p.getHandlersMapByID().get("MyID").get(0);
|
||||
|
||||
Document doc = h.getConfiguration();
|
||||
|
||||
System.out.println(Serialization.convert(doc, MyClass.class));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue