From: <ro...@us...> - 2009-04-22 14:28:00
|
Revision: 158 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=158&view=rev Author: roekens Date: 2009-04-22 14:27:50 +0000 (Wed, 22 Apr 2009) Log Message: ----------- initial commit of oca for openuss breaks maven install at the moment to build project first call mvn jaxws:wsimport then mvn install (can this be configured?) passing parameters to stub service does not seem to work - bugfixing needed Added Paths: ----------- trunk/cse-ip/oca-openuss/src/test/java/de/campussource/cse/oca/openuss/LectureWebServiceTest.java Added: trunk/cse-ip/oca-openuss/src/test/java/de/campussource/cse/oca/openuss/LectureWebServiceTest.java =================================================================== --- trunk/cse-ip/oca-openuss/src/test/java/de/campussource/cse/oca/openuss/LectureWebServiceTest.java (rev 0) +++ trunk/cse-ip/oca-openuss/src/test/java/de/campussource/cse/oca/openuss/LectureWebServiceTest.java 2009-04-22 14:27:50 UTC (rev 158) @@ -0,0 +1,61 @@ +package de.campussource.cse.oca.openuss; + +import static org.junit.Assert.assertNull; + +import javax.xml.ws.Endpoint; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +import de.campussource.cse.common.test.AnnotationInjector; + + + +public class LectureWebServiceTest { + + private AnnotationInjector injector; + private Endpoint endpoint; + + @Before + public void setup() { + OpenUSS ejb = new OpenUSS(); +// autowireByType(ejb); + endpoint = Endpoint.publish("http://localhost:12345/openuss", ejb); + } + + @After + public void stop() { + if (endpoint!=null){ + endpoint.stop(); + } + } + + @Test + public void testWebService() { + LectureWebService openussService = new OpenUSSService().getLectureWebServicePort(); + + try { + assertNull(openussService.findUser("test")); + } catch (LectureLogicException_Exception e) { + e.printStackTrace(); + } + } + + +// protected void autowireByType(Object object) { +// //lazyInjectorInitialization(); +// injector = new AnnotationInjector().autowire(object); +// //injector.autowire(object); +// } + +// /** +// * Checks whether or not the Injector is already initialized or not. +// */ +// private void lazyInjectorInitialization() { +// if (injector == null) { +// injector = new AnnotationInjector().defaultPersistentUnit(entityManager); +// } +// } + +} Property changes on: trunk/cse-ip/oca-openuss/src/test/java/de/campussource/cse/oca/openuss/LectureWebServiceTest.java ___________________________________________________________________ Added: svn:mime-type + text/plain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |