Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Mar 6, 2013
1 parent ad56f84 commit 1421662
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -99,9 +99,9 @@ public TestResult invoke(final TestMethodExecutor testMethodExecutor)

if (instance == null)
throw new IllegalStateException(
"Test class could not be found in any deployment. "
+ "You must have one @Deployment(testable=true) deployment that contains a "
+ "non 'ClassLoading Only' Addon(e.g. An addon that is capable of providing remote services.).");
"Test runner could not locate test class in any deployment. "
+ "Verify that your test case is deployed in an addon that supports remote " +
"services (Did you forget beans.xml in your deployment?)");

TestResult result = null;
try
Expand Down Expand Up @@ -159,7 +159,7 @@ public TestResult invoke(final TestMethodExecutor testMethodExecutor)
{
throw new IllegalStateException("Error launching test "
+ testMethodExecutor.getInstance().getClass().getName() + "."
+ testMethodExecutor.getMethod().getName()+"()", e);
+ testMethodExecutor.getMethod().getName() + "()", e);
}
}
}

0 comments on commit 1421662

Please sign in to comment.