You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by Knut Wannheden <kn...@gmail.com> on 2004/12/20 16:20:51 UTC
Re: cvs commit: jakarta-hivemind/framework/src/test/org/apache/hivemind/conditional TestEvaluationContext.java TestNode.java TestEvaluators.java
> public class TestEvaluationContext extends HiveMindTestCase
> {
> public void testProperty()
> {
> EvaluationContext ec = new EvaluationContextImpl(new DefaultClassResolver());
>
> // Note: test will fail unless
> // -Dproperty-set-for-evaluation-context=true
> // is on JVM command line.
>
> assertEquals(true, ec.isPropertySet("property-set-for-evaluation-context"));
> assertEquals(false, ec.isPropertySet("this-property-does-not-exist"));
> }
>
How about a System.setProperty() call instead of setting it in the
build.xml? Then the test would also pass when run through Eclipse's
JUnit plugin.
--knut
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org