You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/02/21 22:28:36 UTC

cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/junit/protocol/http/config UrlConfigTest.java

sebb        2004/02/21 13:28:36

  Modified:    src/protocol/http/org/apache/jmeter/junit/protocol/http/config
                        UrlConfigTest.java
  Log:
  Fix test to cope with possible multiple Null properties
  
  Revision  Changes    Path
  1.7       +6 -5      jakarta-jmeter/src/protocol/http/org/apache/jmeter/junit/protocol/http/config/UrlConfigTest.java
  
  Index: UrlConfigTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/junit/protocol/http/config/UrlConfigTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- UrlConfigTest.java	12 Feb 2004 00:07:12 -0000	1.6
  +++ UrlConfigTest.java	21 Feb 2004 21:28:36 -0000	1.7
  @@ -21,6 +21,7 @@
   import org.apache.jmeter.config.Arguments;
   import org.apache.jmeter.junit.JMeterTestCase;
   import org.apache.jmeter.protocol.http.sampler.HTTPSampler;
  +import org.apache.jmeter.testelement.property.JMeterProperty;
   import org.apache.jmeter.testelement.property.NullProperty;
   import org.apache.jmeter.testelement.property.TestElementProperty;
   
  @@ -69,9 +70,9 @@
   
       public void testOverRide()
       {
  -        assertTrue(
  -            new NullProperty().equals(
  -                partialConfig.getProperty(HTTPSampler.DOMAIN)));
  +    	JMeterProperty jmp =partialConfig.getProperty(HTTPSampler.DOMAIN);
  +        assertTrue(jmp instanceof NullProperty);
  +        assertTrue(new NullProperty(HTTPSampler.DOMAIN).equals(jmp));
           partialConfig.addTestElement(defaultConfig);
           assertEquals(
               partialConfig.getPropertyAsString(HTTPSampler.DOMAIN),
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org