Browse Source

Update test to work with current error messages

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270972 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
d3d4e01d01
2 changed files with 12 additions and 12 deletions
  1. +6
    -6
      proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java
  2. +6
    -6
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java

+ 6
- 6
proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java View File

@@ -405,9 +405,8 @@ public class DefaultConfigurerTest
}
catch( ConfigurationException e )
{
final String message = REZ.getString( "bad-set-attribute.error",
"test",
"some-prop-ref" );
final String message = REZ.getString( "get-ref.error",
"unknown-prop" );
assertSameMessage( message, e );
}
}
@@ -434,9 +433,10 @@ public class DefaultConfigurerTest
}
catch( ConfigurationException e )
{
final String message = REZ.getString( "bad-set-attribute.error",
"test",
"some-prop-ref" );
final String message = REZ.getString( "mismatch-ref-types.error",
"prop-a",
String.class.getName(),
ConfigTest2.class.getName() );
assertSameMessage( message, e );
}
}


+ 6
- 6
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java View File

@@ -405,9 +405,8 @@ public class DefaultConfigurerTest
}
catch( ConfigurationException e )
{
final String message = REZ.getString( "bad-set-attribute.error",
"test",
"some-prop-ref" );
final String message = REZ.getString( "get-ref.error",
"unknown-prop" );
assertSameMessage( message, e );
}
}
@@ -434,9 +433,10 @@ public class DefaultConfigurerTest
}
catch( ConfigurationException e )
{
final String message = REZ.getString( "bad-set-attribute.error",
"test",
"some-prop-ref" );
final String message = REZ.getString( "mismatch-ref-types.error",
"prop-a",
String.class.getName(),
ConfigTest2.class.getName() );
assertSameMessage( message, e );
}
}


Loading…
Cancel
Save