我有扩展GWTTestCase.class的测试类。
当我尝试调试我的测试时 - 我甚至无法通过我的测试类的第一行,因为我的类扩展了GWTTestCase,并且在测试期间,其中的一些进程会引发下一个异常:
public static IEnumerable<Client> GetClients()
{
return new List<Client>
{
new Client
{
ClientId = "client1",
// no interactive user, use the clientid/secret for authentication
AllowedGrantTypes = GrantTypes.ClientCredentials,
// secret for authentication
ClientSecrets =
{
new Secret("123654".Sha256())
},
// scopes that client has access to
AllowedScopes = {"Api1"},
Claims = new[]
{
new Claim("Employee", "Mosalla"),
new Claim("website", "http://hamidmosalla.com")
},
ClientClaimsPrefix = ""
}
}
任何人都可以对此提出建议吗?
我正在使用[ERROR] 503 - GET /com.energyict.ems.portal.Portal.JUnit/junit.html (127.0.0.1) 336 bytes
com.google.gwt.junit.client.TimeoutException: The browser did not contact the server within 60000ms.
- 1 client(s) haven't responded back to JUnitShell since the start of the test.
Actual time elapsed: 60.236 seconds.
Try increasing this timeout using the '-testBeginTimeout minutes' option
The default value of minutes is 1, i.e., the server waits 1 minute or 60 seconds.
at com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:1039)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1363)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1283)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option UseSplitVerifier; support was removed in 8.0
Process finished with exit code -1
版本2.20