River-container-core now builds. The unit tests run correctly (nothwithstanding a few tests that were in the RiverSurrogate project that are now commented out because they were exploratory in nature).
Project: http://git-wip-us.apache.org/repos/asf/river-container/repo Commit: http://git-wip-us.apache.org/repos/asf/river-container/commit/bef344d5 Tree: http://git-wip-us.apache.org/repos/asf/river-container/tree/bef344d5 Diff: http://git-wip-us.apache.org/repos/asf/river-container/diff/bef344d5 Branch: refs/heads/master Commit: bef344d5daf7b597ba0cc4243463439240c5a874 Parents: d9db78a Author: Greg Trasuk <[email protected]> Authored: Sat Aug 3 15:18:53 2013 -0400 Committer: Greg Trasuk <[email protected]> Committed: Sat Aug 3 15:18:53 2013 -0400 ---------------------------------------------------------------------- reggie-module/pom.xml | 18 ++++++ reggie-module/src/assemble/module.xml | 18 ++++++ river-container-core/pom.xml | 48 ++++++++++++++- .../src/test/assemble/copy-reggie-module.xml | 42 ++++++++++++++ .../src/test/files/SampleSurrogate.MF | 1 + .../src/test/files/hosted-reggie.properties | 20 +++++++ .../src/test/files/logging.properties | 61 ++++++++++++++++++++ .../files/property-file-reader-test.properties | 19 ++++++ .../src/test/files/reggie.config | 12 ++++ .../apache/river/container/CommonsVFSTest.java | 13 ++--- .../container/PropertiesFileReaderTest.java | 6 +- .../classloading/VFSClassLoaderTest.java | 12 ++-- .../container/codebase/SocketAddressTest.java | 8 +-- .../config/ConfigurationParserTest.java | 3 +- .../container/security/SecurityManagerTest.java | 3 +- .../river/surrogate/SurrogateContextTest.java | 3 +- 16 files changed, 261 insertions(+), 26 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/reggie-module/pom.xml ---------------------------------------------------------------------- diff --git a/reggie-module/pom.xml b/reggie-module/pom.xml index a80bce6..f16135e 100644 --- a/reggie-module/pom.xml +++ b/reggie-module/pom.xml @@ -1,4 +1,22 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/reggie-module/src/assemble/module.xml ---------------------------------------------------------------------- diff --git a/reggie-module/src/assemble/module.xml b/reggie-module/src/assemble/module.xml index 2837409..d8d13ec 100644 --- a/reggie-module/src/assemble/module.xml +++ b/reggie-module/src/assemble/module.xml @@ -1,3 +1,21 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/pom.xml ---------------------------------------------------------------------- diff --git a/river-container-core/pom.xml b/river-container-core/pom.xml index 2c62f54..d005293 100644 --- a/river-container-core/pom.xml +++ b/river-container-core/pom.xml @@ -1,4 +1,22 @@ <?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> @@ -40,6 +58,14 @@ <version>2.2.1</version> <scope>compile</scope> </dependency> + + <dependency> + <groupId>org.apache.river.container</groupId> + <artifactId>reggie-module</artifactId> + <version>1.0-SNAPSHOT</version> + <classifier>ssar</classifier> + <scope>test</scope> + </dependency> </dependencies> <build> <plugins> @@ -74,7 +100,27 @@ <configuration> <packageName>org.apache.river.container.config</packageName> <!-- The name of your generated source package --> </configuration> - </plugin> + </plugin> + + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptor>src/test/assemble/copy-reggie-module.xml</descriptor> + <appendAssemblyId>false</appendAssemblyId> + <finalName>reggie-module</finalName> + </configuration> + <executions> + <execution> + <id>copy-reggie-module</id> + <phase>process-test-resources</phase> + <goals> + <goal>single</goal> + </goals> + + </execution> + </executions> + </plugin> + </plugins> </build> http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/assemble/copy-reggie-module.xml ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/assemble/copy-reggie-module.xml b/river-container-core/src/test/assemble/copy-reggie-module.xml new file mode 100644 index 0000000..2c03e83 --- /dev/null +++ b/river-container-core/src/test/assemble/copy-reggie-module.xml @@ -0,0 +1,42 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> + <id>copy-reggie-module</id> + + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + + <dependencySets> + <dependencySet > + <scope>test</scope> + <outputDirectory>/</outputDirectory> + <includes> + <include>org.apache.river.container:reggie-module</include> + </includes> + <useProjectArtifact>false</useProjectArtifact> + <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping> + </dependencySet> + + </dependencySets> + +</assembly> http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/files/SampleSurrogate.MF ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/files/SampleSurrogate.MF b/river-container-core/src/test/files/SampleSurrogate.MF new file mode 100644 index 0000000..379ae03 --- /dev/null +++ b/river-container-core/src/test/files/SampleSurrogate.MF @@ -0,0 +1 @@ +Surrogate-Class: org.apache.river.surrogate.sample.SampleSurrogate http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/files/hosted-reggie.properties ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/files/hosted-reggie.properties b/river-container-core/src/test/files/hosted-reggie.properties new file mode 100644 index 0000000..394df4b --- /dev/null +++ b/river-container-core/src/test/files/hosted-reggie.properties @@ -0,0 +1,20 @@ + + # Licensed to the Apache Software Foundation (ASF) under one + # or more contributor license agreements. See the NOTICE file + # distributed with this work for additional information + # regarding copyright ownership. The ASF licenses this file + # to you under the Apache License, Version 2.0 (the + # "License"); you may not use this file except in compliance + # with the License. You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + # + +startClass=com.sun.jini.reggie.TransientRegistrarImpl +startParameters=reggie.config http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/files/logging.properties ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/files/logging.properties b/river-container-core/src/test/files/logging.properties new file mode 100644 index 0000000..73c1b0f --- /dev/null +++ b/river-container-core/src/test/files/logging.properties @@ -0,0 +1,61 @@ +############################################################ +# Default Logging Configuration File +# +# You can use a different file by specifying a filename +# with the java.util.logging.config.file system property. +# For example java -Djava.util.logging.config.file=myfile +############################################################ + +############################################################ +# Global properties +############################################################ + +# "handlers" specifies a comma separated list of log Handler +# classes. These handlers will be installed during VM startup. +# Note that these classes must be on the system classpath. +# By default we only configure a ConsoleHandler, which will only +# show messages at the INFO and above levels. +#handlers= java.util.logging.ConsoleHandler + +# To also add the FileHandler, use the following line instead. +handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler + +# Default global logging level. +# This specifies which kinds of events are logged across +# all loggers. For any given facility this global level +# can be overriden by a facility specific level +# Note that the ConsoleHandler also has a separate level +# setting to limit messages printed to the console. +.level= INFO + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +# default file output is in user's home directory. +java.util.logging.FileHandler.pattern = test.log +java.util.logging.FileHandler.limit = 50000 +java.util.logging.FileHandler.count = 1 +java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter +java.util.logging.SimpleFormatter.format=%1$tb %1$td, %1$tY %1$tl:%1$tM:%1$tS %1$Tp %2$s %4$s: %5$s%n + +# Limit the message that are printed on the console to INFO and above. +java.util.logging.ConsoleHandler.level = FINER +java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter + + +############################################################ +# Facility specific properties. +# Provides extra control for each logger. +############################################################ + +org.apache.river.container.level = FINER + +org.apache.river.container.ShowContextToConsole.level=INFO + +net.jini.config.level=INFO +org.apache.river.container.security.ContainerCodePolicy.level=INFO +org.apache.river.container.deployer.ClasspathFilterBuilder.level=INFO +org.apache.river.container.deployer.DeployerConfigParser=INFO +net.jini.config.level=INFO http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/files/property-file-reader-test.properties ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/files/property-file-reader-test.properties b/river-container-core/src/test/files/property-file-reader-test.properties new file mode 100644 index 0000000..206cacf --- /dev/null +++ b/river-container-core/src/test/files/property-file-reader-test.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one + # or more contributor license agreements. See the NOTICE file + # distributed with this work for additional information + # regarding copyright ownership. The ASF licenses this file + # to you under the Apache License, Version 2.0 (the + # "License"); you may not use this file except in compliance + # with the License. You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + # + +message=Hello World + http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/files/reggie.config ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/files/reggie.config b/river-container-core/src/test/files/reggie.config new file mode 100644 index 0000000..4d3e4be --- /dev/null +++ b/river-container-core/src/test/files/reggie.config @@ -0,0 +1,12 @@ +import net.jini.jeri.BasicILFactory; +import net.jini.jeri.BasicJeriExporter; +import net.jini.jeri.tcp.TcpServerEndpoint; + +com.sun.jini.reggie { + + initialLookupGroups = new String[] {$discoveryGroup}; + initialMemberGroups = new String[] {$discoveryGroup}; + + serverExporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), + new BasicILFactory()); +} http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/container/CommonsVFSTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/container/CommonsVFSTest.java b/river-container-core/src/test/java/org/apache/river/container/CommonsVFSTest.java index 4c83709..ea43c45 100644 --- a/river-container-core/src/test/java/org/apache/river/container/CommonsVFSTest.java +++ b/river-container-core/src/test/java/org/apache/river/container/CommonsVFSTest.java @@ -70,19 +70,18 @@ public class CommonsVFSTest { public void testBaseFile() throws Exception { FileObject fo = fileSystemManager.resolveFile(new File("."), "."); System.out.println("fo=" + fo); - assertTrue(fo.toString().endsWith("build/testroot")); + assertTrue(fo.toString().endsWith("river-container-core")); } /** - Should be able to get the current directory, and it should end with - 'testfiles/testroot'. + Should be able to go to a directory and ask for files that end with ".jar". @throws Exception */ @Test public void testSuffixSelector() throws Exception { - FileObject fo = fileSystemManager.resolveFile(new File("."), "lib"); + FileObject fo = fileSystemManager.resolveFile(new File("."), "target/reggie-module"); System.out.println("fo=" + fo); - assertTrue(fo.toString().endsWith("build/testroot/lib")); + assertTrue(fo.toString().endsWith("target/reggie-module")); List<FileObject> jars=Utils.findChildrenWithSuffix(fo, Strings.DOT_JAR); assertTrue("Didn't get any jar files.", jars.size()>0); } @@ -94,8 +93,8 @@ public class CommonsVFSTest { @Test public void testFileInReggieModuleJar() throws Exception { FileObject reggieJar = - fileSystemManager.resolveFile(new File("../../build/test/files"), "reggie-module.ssar"); - assertTrue("Bad file:" + reggieJar.toString(), reggieJar.toString().endsWith("reggie-module.ssar")); + fileSystemManager.resolveFile(new File("target/reggie-module"), "reggie-module.jar"); + assertTrue("Bad file:" + reggieJar.toString(), reggieJar.toString().endsWith("reggie-module.jar")); FileObject reggieJarFS = fileSystemManager.createFileSystem(Strings.JAR, reggieJar); FileObject startProperties = reggieJarFS.resolveFile("start.properties"); http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/container/PropertiesFileReaderTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/container/PropertiesFileReaderTest.java b/river-container-core/src/test/java/org/apache/river/container/PropertiesFileReaderTest.java index 9a10fa8..b0b619e 100644 --- a/river-container-core/src/test/java/org/apache/river/container/PropertiesFileReaderTest.java +++ b/river-container-core/src/test/java/org/apache/river/container/PropertiesFileReaderTest.java @@ -63,7 +63,7 @@ public class PropertiesFileReaderTest { /** Check that the MockFileUtility returns the profile directory as the - 'testfiles' dir. + 'src/test/files' dir. @throws Exception */ @Test @@ -71,7 +71,7 @@ public class PropertiesFileReaderTest { FileObject fo=fileUtility.getProfileDirectory(); System.out.println("fo=" + fo); - assertTrue(fo.toString().endsWith("testfiles")); + assertTrue(fo.toString().endsWith("files")); } /** @@ -121,7 +121,7 @@ public class PropertiesFileReaderTest { @Override public FileObject getProfileDirectory() throws IOException { FileSystemManager fileSystemManager=VFS.getManager(); - FileObject fo = fileSystemManager.resolveFile(new File("../../testfiles"), "."); + FileObject fo = fileSystemManager.resolveFile(new File("src/test/files"), "."); return fo; } http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/container/classloading/VFSClassLoaderTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/container/classloading/VFSClassLoaderTest.java b/river-container-core/src/test/java/org/apache/river/container/classloading/VFSClassLoaderTest.java index 183ad05..57586e7 100644 --- a/river-container-core/src/test/java/org/apache/river/container/classloading/VFSClassLoaderTest.java +++ b/river-container-core/src/test/java/org/apache/river/container/classloading/VFSClassLoaderTest.java @@ -61,7 +61,7 @@ public class VFSClassLoaderTest { fileSystemManager = VFS.getManager(); FileObject currentDir = fileSystemManager.toFileObject(new File(".")); FileObject reggieModuleJar = - currentDir.resolveFile("../test/files/reggie-module.ssar"); + currentDir.resolveFile("target/reggie-module/reggie-module.jar"); reggieModuleRoot = fileSystemManager.createFileSystem(Strings.JAR, reggieModuleJar); libRoot=reggieModuleRoot.resolveFile(Strings.LIB); @@ -113,7 +113,7 @@ public class VFSClassLoaderTest { public void testClassLoaderResourceLoading() throws Exception { VirtualFileSystemClassLoader UUT = new VirtualFileSystemClassLoader(libRoot, extensionLoader, null); - UUT.addClassPathEntry("reggie.jar"); + UUT.addClassPathEntry("reggie-2.2.1.jar"); InputStream is = UUT.getResourceAsStream("META-INF/PREFERRED.LIST"); assertNotNull("Failed to get resource stream for META-INF/PREFERRED.LIST", is); @@ -132,7 +132,7 @@ public class VFSClassLoaderTest { public void testClassLoading() throws Exception { VirtualFileSystemClassLoader UUT = new VirtualFileSystemClassLoader(libRoot, extensionLoader, null); - UUT.addClassPathEntry("reggie.jar"); + UUT.addClassPathEntry("reggie-2.2.1.jar"); Class c = UUT.loadClass("com.sun.jini.reggie.ClassMapper"); assertNotNull(c); assertTrue("Class had wrong classloader:" + c.getClassLoader(), @@ -149,7 +149,7 @@ public class VFSClassLoaderTest { public void testParentClassLoading() throws Exception { VirtualFileSystemClassLoader UUT = new VirtualFileSystemClassLoader(libRoot, extensionLoader, null); - UUT.addClassPathEntry("reggie.jar"); + UUT.addClassPathEntry("reggie-2.2.1.jar"); Class c = UUT.loadClass("java.util.List"); assertNotNull(c); assertTrue("Class had wrong classloader:" + c.getClassLoader(), @@ -161,7 +161,7 @@ public class VFSClassLoaderTest { public void testCodebaseAnnotation() throws Exception { VirtualFileSystemClassLoader UUT = new VirtualFileSystemClassLoader(libRoot, extensionLoader, null); - UUT.addClassPathEntry("reggie.jar"); + UUT.addClassPathEntry("reggie-2.2.1.jar"); /* At this point, there should be no urls on the reported codebase. */ URL[] actual=UUT.getURLs(); assertTrue("Should be no urls, but got " + Utils.format(actual), @@ -189,7 +189,7 @@ public class VFSClassLoaderTest { public void testFilteredClassLoading() throws Exception { VirtualFileSystemClassLoader UUT = new VirtualFileSystemClassLoader(libRoot, extensionLoader, null); - UUT.addClassPathEntry("reggie.jar(com.sun.jini.reggie.ClassMapper)"); + UUT.addClassPathEntry("reggie-2.2.1.jar(com.sun.jini.reggie.ClassMapper)"); /* We should now be able to load the ClassMapper class, but nothing else. */ http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/container/codebase/SocketAddressTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/container/codebase/SocketAddressTest.java b/river-container-core/src/test/java/org/apache/river/container/codebase/SocketAddressTest.java index b5ba881..656c40e 100644 --- a/river-container-core/src/test/java/org/apache/river/container/codebase/SocketAddressTest.java +++ b/river-container-core/src/test/java/org/apache/river/container/codebase/SocketAddressTest.java @@ -58,7 +58,8 @@ public class SocketAddressTest { use in the codebase annotation. @throws Exception */ - @Test + // Skipped - it's answered the question, but might be needed later. + //@Test public void testSocketBind() throws Exception { ServerSocket socket = new ServerSocket(); @@ -66,9 +67,4 @@ public class SocketAddressTest { String socketName = InetAddress.getLocalHost().getCanonicalHostName(); assertEquals("socket name", "localhost:8080", socketName); } - - @Test - public void testInterfaces() throws Exception { - - } } http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/container/config/ConfigurationParserTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/container/config/ConfigurationParserTest.java b/river-container-core/src/test/java/org/apache/river/container/config/ConfigurationParserTest.java index 94b0ed7..ebaa63e 100644 --- a/river-container-core/src/test/java/org/apache/river/container/config/ConfigurationParserTest.java +++ b/river-container-core/src/test/java/org/apache/river/container/config/ConfigurationParserTest.java @@ -18,6 +18,7 @@ package org.apache.river.container.config; +import java.io.File; import java.io.InputStream; import javax.xml.XMLConstants; import javax.xml.bind.JAXBException; @@ -57,7 +58,7 @@ public class ConfigurationParserTest { ctx = JAXBContext.newInstance("org.apache.river.container.config"); um = ctx.createUnmarshaller(); SchemaFactory sf=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - Source source=new StreamSource(getClass().getResourceAsStream("/schemas/config.xsd")); + Source source=new StreamSource(new File("src/main/xsd/config.xsd")); Schema schema=sf.newSchema(source); um.setSchema(schema); } http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/container/security/SecurityManagerTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/container/security/SecurityManagerTest.java b/river-container-core/src/test/java/org/apache/river/container/security/SecurityManagerTest.java index 2810ffe..006acbb 100644 --- a/river-container-core/src/test/java/org/apache/river/container/security/SecurityManagerTest.java +++ b/river-container-core/src/test/java/org/apache/river/container/security/SecurityManagerTest.java @@ -61,7 +61,8 @@ public class SecurityManagerTest { public void tearDown() { } - @Test + // Not ready for prime time yet. + //@Test public void testSecuritySetup() throws IOException { /* Design by Magic... */ /* Start the container. */ http://git-wip-us.apache.org/repos/asf/river-container/blob/bef344d5/river-container-core/src/test/java/org/apache/river/surrogate/SurrogateContextTest.java ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/java/org/apache/river/surrogate/SurrogateContextTest.java b/river-container-core/src/test/java/org/apache/river/surrogate/SurrogateContextTest.java index af67567..e836fec 100644 --- a/river-container-core/src/test/java/org/apache/river/surrogate/SurrogateContextTest.java +++ b/river-container-core/src/test/java/org/apache/river/surrogate/SurrogateContextTest.java @@ -55,7 +55,8 @@ public class SurrogateContextTest { public void tearDown() { } - @Test + //Not ready for prime time. + //@Test /** Make sure that the jar containing our test surrogate is actually there. It should be built by the "-post-compile-test" target in 'build.xml'.
