diff --git a/info.textgrid.middleware.tgauth.tgextra-client-test/.classpath b/info.textgrid.middleware.tgauth.tgextra-client-test/.classpath deleted file mode 100644 index 348f9a2f412c610e1b189023ed6fd73ca8515f24..0000000000000000000000000000000000000000 --- a/info.textgrid.middleware.tgauth.tgextra-client-test/.classpath +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/> - <classpathentry kind="src" path="src/test/resources" output="target/test-classes" excluding="**/*.java"/> - <classpathentry kind="src" path="src/main/java" including="**/*.java"/> - <classpathentry kind="output" path="target/classes"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> - <classpathentry kind="src" path="/tgauth-client-crud"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-jaxws/3.1.5/cxf-rt-frontend-jaxws-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar" sourcepath="M2_REPO/xml-resolver/xml-resolver/1.2/xml-resolver-1.2-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar" sourcepath="M2_REPO/org/ow2/asm/asm/5.0.4/asm-5.0.4-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-core/3.1.5/cxf-core-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar" sourcepath="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar" sourcepath="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar" sourcepath="M2_REPO/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-soap/3.1.5/cxf-rt-bindings-soap-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-wsdl/3.1.5/cxf-rt-wsdl-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/wsdl4j/wsdl4j/1.6.3/wsdl4j-1.6.3.jar" sourcepath="M2_REPO/wsdl4j/wsdl4j/1.6.3/wsdl4j-1.6.3-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-databinding-jaxb/3.1.5/cxf-rt-databinding-jaxb-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-impl-2.2.11.jar" sourcepath="M2_REPO/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-impl-2.2.11-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/com/sun/xml/bind/jaxb-core/2.2.11/jaxb-core-2.2.11.jar" sourcepath="M2_REPO/com/sun/xml/bind/jaxb-core/2.2.11/jaxb-core-2.2.11-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-bindings-xml/3.1.5/cxf-rt-bindings-xml-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-frontend-simple/3.1.5/cxf-rt-frontend-simple-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-ws-addr/3.1.5/cxf-rt-ws-addr-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-ws-policy/3.1.5/cxf-rt-ws-policy-3.1.5.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/neethi/neethi/3.0.3/neethi-3.0.3.jar" sourcepath="M2_REPO/org/apache/neethi/neethi/3.0.3/neethi-3.0.3-sources.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/cxf/cxf-rt-transports-http/3.1.5/cxf-rt-transports-http-3.1.5.jar"/> - <classpathentry kind="src" path="/tgauth-client"/> - <classpathentry kind="var" path="M2_REPO/junit/junit/4.8.1/junit-4.8.1.jar" sourcepath="M2_REPO/junit/junit/4.8.1/junit-4.8.1-sources.jar"/> -</classpath> \ No newline at end of file diff --git a/info.textgrid.middleware.tgauth.tgextra-client-test/.settings/org.eclipse.jdt.core.prefs b/info.textgrid.middleware.tgauth.tgextra-client-test/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8f21863e0773e4ea4e03d3a9554cf1b20b3984cb..0000000000000000000000000000000000000000 --- a/info.textgrid.middleware.tgauth.tgextra-client-test/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,9 +0,0 @@ -#Fri Dec 14 15:42:37 CET 2018 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -eclipse.preferences.version=1 -encoding/src/main/java=UTF-8 -org.eclipse.jdt.core.compiler.source=1.8 -encoding/src/test/resources=UTF-8 -encoding/src/main/resources=UTF-8 -encoding/src/test/java=UTF-8 -org.eclipse.jdt.core.compiler.compliance=1.8 diff --git a/info.textgrid.middleware.tgauth.tgextra-client-test/src/test/java/info/textgrid/middleware/tgauth/tgauthclient/TestTGAuthServiceOnline.java b/info.textgrid.middleware.tgauth.tgextra-client-test/src/test/java/info/textgrid/middleware/tgauth/tgauthclient/TestTGAuthServiceOnline.java index ea77f8aaff8ea34ee2b369bbb20b440db48c6f44..19bdb343c02bdfa193e3ae0fbe51f6beaeb0d0a0 100644 --- a/info.textgrid.middleware.tgauth.tgextra-client-test/src/test/java/info/textgrid/middleware/tgauth/tgauthclient/TestTGAuthServiceOnline.java +++ b/info.textgrid.middleware.tgauth.tgextra-client-test/src/test/java/info/textgrid/middleware/tgauth/tgauthclient/TestTGAuthServiceOnline.java @@ -36,6 +36,7 @@ import info.textgrid.namespaces.middleware.tgauth.CreateProjectRequest; import info.textgrid.namespaces.middleware.tgauth.CreateProjectResponse; import info.textgrid.namespaces.middleware.tgauth.DeleteProjectRequest; import info.textgrid.namespaces.middleware.tgauth.GetAllProjectsRequest; +import info.textgrid.namespaces.middleware.tgauth.GetAllProjectsResponse; import info.textgrid.namespaces.middleware.tgauth.GetIDsRequest; import info.textgrid.namespaces.middleware.tgauth.GetIDsResponse; import info.textgrid.namespaces.middleware.tgauth.GetMyUserAttributesRequest; @@ -79,6 +80,8 @@ import info.textgrid.namespaces.middleware.tgauth_crud.UnknownResourceFault; ** * CHANGELOG * + * 2019-11-12 - Funk - Add GetAllProjects test for public projects. + * * 2019-01-28 - Funk - Prettyfying output. * * 2018-11-23 - Funk - Adding tests for issue #26471 @@ -93,7 +96,7 @@ import info.textgrid.namespaces.middleware.tgauth_crud.UnknownResourceFault; * </p> * * @author Stefan E. Funk, SUB Göttingen - * @version 2019-01-28 + * @version 2019-11-12 * @since 2010-09-07 */ @@ -694,6 +697,30 @@ public class TestTGAuthServiceOnline { assertTrue(NOT_YET_IMPLEMENTED, false); } + /** + * + */ + @Test + public void testTgextraGetAllProjectsPublic() { + + System.out.println("TESTING PUBLIC #GETALLPROJECTS"); + + GetAllProjectsRequest req = new GetAllProjectsRequest(); + req.setLog(logParameter); + + System.out.println("\tlog parameter: " + req.getLog()); + System.out.println(TGAuthClientCommon.TABLINE); + + GetAllProjectsResponse response = tgextra.getAllProjects(req); + + for (ProjectInfo p : response.getProject()) { + System.out.println("\t" + p.getId() + "\t" + p.getName() + "\t" + p.getDescription()); + } + + System.out.println(TGAuthClientCommon.TABLINE); + System.out.println(OK); + } + /** * */