diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-13 14:52:13 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-13 14:52:13 +0000 |
commit | 8d663999600764840aece20d666563d3ba3cdea3 (patch) | |
tree | 928ee2ddf235defe549d58318d3fe53c4ac559b3 /branches/sca-java-1.5.1/modules/implementation-node | |
parent | 97346923d491cb9bef32b442afe64701a944e80c (diff) |
TUSCANY-3213 - move ProblemImpl from assembly.builder.impl to monitor.impl and extend the Monitor interface to allow problems to be created without needing to access and implementation package
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@803910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5.1/modules/implementation-node')
-rw-r--r-- | branches/sca-java-1.5.1/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/builder/impl/CalculateBindingURITestCase.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/branches/sca-java-1.5.1/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/builder/impl/CalculateBindingURITestCase.java b/branches/sca-java-1.5.1/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/builder/impl/CalculateBindingURITestCase.java index 072abe2c9a..db31b3c17e 100644 --- a/branches/sca-java-1.5.1/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/builder/impl/CalculateBindingURITestCase.java +++ b/branches/sca-java-1.5.1/modules/implementation-node/src/test/java/org/apache/tuscany/sca/implementation/node/builder/impl/CalculateBindingURITestCase.java @@ -45,6 +45,7 @@ import org.apache.tuscany.sca.implementation.node.impl.NodeImplementationFactory import org.apache.tuscany.sca.monitor.Monitor; import org.apache.tuscany.sca.monitor.Problem; import org.apache.tuscany.sca.monitor.Problem.Severity; +import org.apache.tuscany.sca.monitor.impl.ProblemImpl; /** * @@ -81,6 +82,20 @@ public class CalculateBindingURITestCase extends TestCase { public List<Problem> getProblems() { return null; } + + public Problem createProblem(String sourceClassName, String bundleName, + Severity severity, Object problemObject, String messageId, + Exception cause) { + return new ProblemImpl(sourceClassName, bundleName, severity, + problemObject, messageId, cause); + } + + public Problem createProblem(String sourceClassName, String bundleName, + Severity severity, Object problemObject, String messageId, + Object... messageParams) { + return new ProblemImpl(sourceClassName, bundleName, severity, + problemObject, messageId, messageParams); + } }; configurationBuilder = new NodeCompositeBuilderImpl(assemblyFactory, scaBindingFactory, null, null, monitor); Binding defaultBinding = new TestBindingImpl(); |