Repository: juddi Updated Branches: refs/heads/master 69dd97603 -> 0c0961152
JUDDI-947 Avoid copying the source juddi-core in juddi-core-openjpa, merged Project: http://git-wip-us.apache.org/repos/asf/juddi/repo Commit: http://git-wip-us.apache.org/repos/asf/juddi/commit/0c096115 Tree: http://git-wip-us.apache.org/repos/asf/juddi/tree/0c096115 Diff: http://git-wip-us.apache.org/repos/asf/juddi/diff/0c096115 Branch: refs/heads/master Commit: 0c0961152afc79423b6814b0767f025b7287b9ed Parents: 69dd976 Author: Alex <[email protected]> Authored: Sat Dec 12 08:06:56 2015 -0500 Committer: Alex <[email protected]> Committed: Sat Dec 12 08:06:56 2015 -0500 ---------------------------------------------------------------------- .../org/apache/juddi/config/InstallTest.java | 24 ++++++-------------- 1 file changed, 7 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/juddi/blob/0c096115/juddi-core/src/test/java/org/apache/juddi/config/InstallTest.java ---------------------------------------------------------------------- diff --git a/juddi-core/src/test/java/org/apache/juddi/config/InstallTest.java b/juddi-core/src/test/java/org/apache/juddi/config/InstallTest.java index b88aab5..02aa340 100644 --- a/juddi-core/src/test/java/org/apache/juddi/config/InstallTest.java +++ b/juddi-core/src/test/java/org/apache/juddi/config/InstallTest.java @@ -15,26 +15,16 @@ */ package org.apache.juddi.config; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.StringWriter; -import java.util.Properties; -import javax.persistence.EntityManager; -import javax.xml.bind.JAXB; import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.MapConfiguration; -import org.apache.juddi.model.UddiEntityPublisher; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import static org.junit.Assert.*; -import org.uddi.api_v3.BusinessEntity; -import org.uddi.api_v3.TModel; +import org.junit.*; import org.uddi.repl_v3.ReplicationConfiguration; +import javax.xml.bind.JAXB; +import java.io.InputStream; +import java.io.StringWriter; +import java.util.Properties; + /** * * @author alex @@ -66,7 +56,7 @@ public class InstallTest { @Test public void testApplyReplicationTokenChanges() throws Exception { System.out.println("applyReplicationTokenChanges"); - FileInputStream fis = new FileInputStream("./src/main/resources/juddi_install_data/root_replicationConfiguration.xml"); + InputStream fis = getClass().getClassLoader().getResourceAsStream("juddi_install_data/root_replicationConfiguration.xml"); ReplicationConfiguration replicationCfg = JAXB.unmarshal(fis, ReplicationConfiguration.class); Properties props = new Properties(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
