[ 
https://issues.apache.org/jira/browse/S4-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174490#comment-13174490
 ] 

Karthik Kambatla commented on S4-33:
------------------------------------

To start with, I have refactored the TestUtils into CommTestUtils and 
CoreTestUtils.

Now, when I run gradle :s4-core:test, I get the following output. It compiles 
fine in Eclipse. s4-core.gradle script does have s4-comm under its 
dependencies. I am kind of stuck and would really appreciate any help.

The 'urls' property of the RepositoryHandler.mavenRepo() method is deprecated 
and will be removed in a future version of Gradle. You should use the 'url' 
property to define the core maven repository & the 'artifactUrls' property to 
define any additional artifact locations.
The Configuration.getAllArtifactFiles() method is deprecated and will be 
removed in the next version of Gradle. You should use the 
getAllArtifacts().getFiles() method instead.
:s4-base:compileJava UP-TO-DATE
:s4-base:processResources UP-TO-DATE
:s4-base:classes UP-TO-DATE
:s4-base:jar UP-TO-DATE
:s4-comm:compileJava UP-TO-DATE
:s4-comm:processResources UP-TO-DATE
:s4-comm:classes UP-TO-DATE
:s4-comm:jar UP-TO-DATE
:s4-core:compileJava UP-TO-DATE
:s4-core:processResources UP-TO-DATE
:s4-core:classes UP-TO-DATE
:s4-core:compileTestJavaCoreTestUtils.java:5: package 
org.apache.s4.comm.fixtures does not exist
import org.apache.s4.comm.fixtures.CommTestUtils;
                                  ^
CoreTestUtils.java:15: cannot find symbol
symbol: class CommTestUtils
public class CoreTestUtils extends CommTestUtils {
                                   ^
CoreTestUtils.java:18: cannot find symbol
symbol  : method forkProcess(java.lang.String,java.lang.String,java.lang.String)
location: class org.apache.s4.fixtures.CoreTestUtils
        return forkProcess(App.class.getName(), moduleClass.getName(), 
appClass.getName());
               ^
CoreTestUtils.java:22: cannot find symbol
symbol  : method forkProcess(java.lang.String,java.lang.String[])
location: class org.apache.s4.fixtures.CoreTestUtils
        return forkProcess(Main.class.getName(), new String[] {});
               ^
4 errors


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':s4-core:compileTestJava'.
Cause: Compile failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.

BUILD FAILED

Total time: 19.816 secs
                
> s4-comm tests should use zookeeper
> ----------------------------------
>
>                 Key: S4-33
>                 URL: https://issues.apache.org/jira/browse/S4-33
>             Project: Apache S4
>          Issue Type: Sub-task
>    Affects Versions: 0.5
>            Reporter: Karthik Kambatla
>             Fix For: 0.5
>
>
> [From Skype call on 12/20] s4-comm tests currently use file-based 
> configurations - AssignmentFromFile, TopologyFromFile. Instead, they should 
> change to using zookeeper-based configurations.
> Steps involved --
> 1. Move org.apache.s4.fixtures from s4-core/test to s4-comm/test to avoid 
> duplication of code
> 2. Rewrite s4-comm/tests to use these fixtures.
> Issues --
> 1. s4.fixtures uses some App-related code
> Eager to hear comments.

--
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

        

Reply via email to