Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.1
    • Fix Version/s: None
    • Component/s: Server
    • Environment:
      Ubuntu 11.04

      Description

      I downloaded via SVN and typed "ant test". Am I missing something? perhaps the README should contain more info on required packages on top of a basic ubuntu installation (already running apache and tomcat 6, so I have some packages installed):

      compile-tests:
      [javac] Compiling 439 source files to /home/alejandrofernandez/work/trunk/build/test
      [javac] /home/alejandrofernandez/work/trunk/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:99: cannot find symbol
      [javac] symbol : method thenReturn(java.util.StringTokenizer)
      [javac] location: interface org.mockito.stubbing.OngoingStubbing<java.util.Enumeration<java.lang.String>>
      [javac] when(req.getHeaderNames()).thenReturn(new StringTokenizer("Authorization"));
      [javac] ^
      [javac] /home/alejandrofernandez/work/trunk/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:112: cannot find symbol
      [javac] symbol : method thenReturn(java.util.StringTokenizer)
      [javac] location: interface org.mockito.stubbing.OngoingStubbing<java.util.Enumeration<java.lang.String>>
      [javac] when(req.getHeaders("Authorization")).thenReturn(generateOAuthHeader(ROBOT.getAddress()));
      [javac] ^
      [javac] /home/alejandrofernandez/work/trunk/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:135: cannot find symbol
      [javac] symbol : method thenReturn(java.util.StringTokenizer)
      [javac] location: interface org.mockito.stubbing.OngoingStubbing<java.util.Enumeration<java.lang.String>>
      [javac] when(req.getHeaders("Authorization")).thenReturn(
      [javac] ^
      [javac] /home/alejandrofernandez/work/trunk/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:145: cannot find symbol
      [javac] symbol : method thenReturn(java.util.StringTokenizer)
      [javac] location: interface org.mockito.stubbing.OngoingStubbing<java.util.Enumeration<java.lang.String>>
      [javac] when(req.getHeaders("Authorization")).thenReturn(generateOAuthHeader(UNKNOWN.getAddress()));
      [javac] ^
      [javac] /home/alejandrofernandez/work/trunk/test/org/waveprotocol/box/server/robots/active/ActiveApiServletTest.java:153: cannot find symbol
      [javac] symbol : method thenReturn(java.util.StringTokenizer)
      [javac] location: interface org.mockito.stubbing.OngoingStubbing<java.util.Enumeration<java.lang.String>>
      [javac] when(req.getHeaders("Authorization")).thenReturn(generateOAuthHeader(ROBOT.getAddress()));
      [javac] ^
      [javac] /home/alejandrofernandez/work/trunk/test/org/waveprotocol/box/server/robots/dataapi/DataApiServletTest.java:146: cannot find symbol
      [javac] symbol : method thenReturn(com.google.common.collect.ImmutableMap<java.lang.Object,java.lang.Object>)
      [javac] location: interface org.mockito.stubbing.OngoingStubbing<java.util.Map<java.lang.String,java.lang.String[]>>
      [javac] when(req.getParameterMap()).thenReturn(ImmutableMap.of());
      [javac] ^
      [javac] Note: Some input files use or override a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] 6 errors

      BUILD FAILED
      /home/alejandrofernandez/work/trunk/build.xml:254: The following error occurred while executing this line:
      /home/alejandrofernandez/work/trunk/build-macros.xml:70: Compile failed; see the compiler error output for details.

      Total time: 5 minutes 22 seconds

        Activity

        Hide
        Yuri Zelikov added a comment -

        Fixed.

        Show
        Yuri Zelikov added a comment - Fixed.
        Hide
        Yuri Zelikov added a comment -

        This is a know issue, please see workaround at https://issues.apache.org/jira/browse/WAVE-298
        or, you can build the application using the following: (skipping tests)
        ant compile-gwt
        ant dist-server

        Show
        Yuri Zelikov added a comment - This is a know issue, please see workaround at https://issues.apache.org/jira/browse/WAVE-298 or, you can build the application using the following: (skipping tests) ant compile-gwt ant dist-server

          People

          • Assignee:
            Yuri Zelikov
            Reporter:
            Ale Fernandez
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development