[
https://issues.apache.org/jira/browse/WAVE-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antonio Bello updated WAVE-298:
-------------------------------
Attachment: patch-wave-298.txt
This patch solves the problem in my case.
I'm running ubuntu x64, and experienced the same problem.
What I did is simply change the parameter type passed to the thenReturn()
method:
* convert StringTokenizer to Enumeration<String> in ActiveApiServletTest
* replace ImmutableMap.of() with new Hashtable<String, String[]>() in
DataApiServletTest
> 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
> Assignee: Yuri Zelikov
> Attachments: patch-wave-298.txt
>
>
> $ 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