summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java3
-rw-r--r--sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java13
2 files changed, 15 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
index 3f66f85283..0ff1a87fe9 100644
--- a/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
+++ b/sca-java-2.x/trunk/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
@@ -100,7 +100,7 @@ public class NodeFactoryImpl extends NodeFactory {
*/
protected boolean autoDestroy = true;
- protected boolean quietLogging;
+ boolean quietLogging;
@Override
public Node createNode(NodeConfiguration configuration) {
@@ -460,6 +460,7 @@ public class NodeFactoryImpl extends NodeFactory {
discovery.setAttribute(serviceType, attribute, properties.getProperty(p));
}
}
+ quietLogging = Boolean.parseBoolean(properties.getProperty(RuntimeProperties.QUIET_LOGGING));
super.configure(attributes);
}
diff --git a/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java b/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java
index af7b18207c..2bcab39d68 100644
--- a/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java
+++ b/sca-java-2.x/trunk/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java
@@ -233,4 +233,17 @@ public class NodeImplTestCase {
Assert.assertTrue(((NodeFactoryImpl)nf).inited);
}
+
+ @Test
+ public void testQuietLogging() throws Exception {
+ Properties props = new Properties();
+ props.setProperty(RuntimeProperties.QUIET_LOGGING, "true");
+ NodeFactory nf = NodeFactory.newInstance(props);
+ Node node = nf.createNode();
+ node.start();
+ node.stop();
+ // This doesn't actually check the logging yet, need to figure out a
+ // way to get the log output so for now has to be run manually
+ }
+
}