Wave doesn't compile: error: no suitable method found for
thenReturn(StringTokenizer)
--------------------------------------------------------------------------------------
Key: WAVE-298
URL: https://issues.apache.org/jira/browse/WAVE-298
Project: Wave
Issue Type: Bug
Components: Server
Affects Versions: 0.1
Environment: Tested on Debian/unstable with Java 6 and Java 7, and on
Ubuntu 11.10.
Reporter: Thomas Leonard
$ ant
[...]
compile-tests:
[javac] Compiling 380 source files to /home/tal/src/wave/build/test
[javac]
/home/tal/src/wave/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:99:
error: no suitable method found for thenReturn(StringTokenizer)
[javac] when(req.getHeaderNames()).thenReturn(new
StringTokenizer("Authorization"));
[javac] ^
[javac] method OngoingStubbing.thenReturn(Enumeration<String>) is not
applicable
[javac] (actual argument StringTokenizer cannot be converted to
Enumeration<String> by method invocation conversion)
[javac] method
OngoingStubbing.thenReturn(Enumeration<String>,Enumeration<String>...) is not
applicable
[javac] (actual argument StringTokenizer cannot be converted to
Enumeration<String> by method invocation conversion)
[javac]
/home/tal/src/wave/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:112:
error: no suitable method found for thenReturn(StringTokenizer)
[javac]
when(req.getHeaders("Authorization")).thenReturn(generateOAuthHeader(ROBOT.getAddress()));
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira