Added quick test class

This commit is contained in:
Mauro Mugnaini 2020-06-04 16:47:01 +02:00
parent 0179e650b6
commit a1921e4486
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package com.nubisware.oidc.keycloak.gcube;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
public class ExportParserTest {
public ExportParserTest() {
}
public static void main(String[] args)
throws FileNotFoundException, SAXException, IOException, ParserConfigurationException {
ExportParser ep = new ExportParser(new FileInputStream("src/test/resources/dev2-db.json"));
System.out.println(ep.getAllContexts());
System.out.println(ep.getAllUserContextsAndRoles());
}
}