junit.framework.AssertionFailedError:

Getting the following error while running a simple junit test case.Build by ant

and running on eclipse3.2 with junit 3.8 ,Java 1.4.2.Can any one suggest the solution?

this is the testcasepublicvoid testEditProfile(){

try{

boolean isUpdated = regManager.editProfile("1","Samikshya", null,

"samikhyad@abcd.com", sessionID, null,"3",

"111111111111111111","0","asdf","A2", null,"bangalore",

"Karnataka","india", null, null,"123456","GMT%2b5:30","English",

null,"Nothing",null);

assertTrue("Failed to update the user Profile", isUpdated);

//assertEquals("First Name is not updated", "Samikshya", );

}catch(Exception e){

StackTraceElement traceElements[] = e.getStackTrace();

System.out.println(traceElements[0] +" " + e.getMessage());

}

}

and the error

junit.framework.AssertionFailedError: Exception in constructor: testEditProfile (java.util.MissingResourceException: Can't find bundle for base name errorCode, locale en_US

at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)

at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)

at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)

at example.common.resource.Resource.<init>(Resource.java:30)

at example.common.resource.ResourceFactory.add(ResourceFactory.java:58)

at example.modules.exampleBaseTest.<init>(exampleBaseTest.java:47)

at example.modules.feps.RegistrationManagerTest.<init>(RegistrationManagerTest.java:20)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at junit.framework.TestSuite.createTest(TestSuite.java:135)

at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)

at junit.framework.TestSuite.<init>(TestSuite.java:75)

at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:102)

at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

)

at junit.framework.Assert.fail(Assert.java:47)

at junit.framework.TestSuite$1.runTest(TestSuite.java:263)

at junit.framework.TestCase.runBare(TestCase.java:127)

at junit.framework.TestResult$1.protect(TestResult.java:106)

at junit.framework.TestResult.runProtected(TestResult.java:124)

at junit.framework.TestResult.run(TestResult.java:109)

at junit.framework.TestCase.run(TestCase.java:118)

at junit.framework.TestSuite.runTest(TestSuite.java:208)

at junit.framework.TestSuite.run(TestSuite.java:203)

at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)

at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

[4769 byte] By [uk0102a] at [2007-11-27 1:42:30]
# 1
How is this related to 'cryptography' ?P.S. You need to provide the resource that the exception tells you is missing. The exception relates to line 47 of exampleBaseTest.java .
sabre150a at 2007-7-12 0:59:13 > top of Java-index,Security,Cryptography...