On Thursday 29 May 2008 08:31:29 Lenni Madsen wrote:

Hallo,

> public void testCreateFactory() throws SoapFault, IOException{
>                 factory = new WsFactoryProxy(new
> EndpointReference(URI.create(factoryUrl)));
>                 factory.setTrace(false);        
>         }

Ok, I simply did:

@Override
protected void setUp() throws Exception {
        EndpointReference epr = new
                EndpointReference(URI.create(RegisterPublisher.resourceType));
        factory = new RegisterPublisher(epr);
}

public final void testRegister() {
        Object epr = factory.registerPublisher(null, null, false, null);
}

But I don't get the point when the system should actually get initialized.
I get a NPE at the line:
        ResourceManager manager = getResource().getResourceManager();
later. Which is abvoius, because nothing has beed initialized, yet. Which 
point in you code did I miss? 

Jan
-- 
Jan Torben Heuer                Institute for Geoinformatics
[EMAIL PROTECTED]       Robert-Koch-Strasse 26-28
+49 251 83-31960                48151 Münster, Germany

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to