Hello, thank you very much for your help. You are giving me the exact
answer I needed, but I am unable to see the output after ->Run as -> JUnit
Test.

When I right click on ALSWRFactorizerTest.java , I get the Run
Configuration window. Here I select test runner: JUnit 4,
the  Project is mahout-examples
      Test class : org.apache.mahout.clustering.display.ClustersFilterTest
      Test Method : (All methods)

I click Run
Then I get a Errors in Workspace message saying that :
Errors exist in required project(s):
mahout-integration, mahout-examples, mahout-core, mahout-math
 Proceed with launch?.
After proceeding, JUnit window says : runs 2/2, Errors:0, Failures: 0

My question might seem silly to you, but I have no idea about it, How to
view the test results?

Also could you tell me where can I change the log level to 'info' or
'debug'.

I was not able to run in debug mode with breakpoints.

Thank you very much. I would really appreciate little more support from you
until I figure things out how to debug the code.

On Thu, Nov 22, 2012 at 7:00 PM, kuba <[email protected]> wrote:

> Hi,
>
> ALSWRFactorizerTest.java is test case written in JUnit, for developers, to
> check if ALSWRFactorizer is working right.
> If you want to run it in eclipse:
> open ALSWRFactorizerTest.java file in eclipse editor, right click -> Run
> as -> JUnit Test, and you should see test results.
>
>
> functions annotated as @TestCase are separeate test cases.
> Function annotated @Before is used to set data before running tests.
> If you want to have a good look at what's going on inside, try changing
> log level to 'info' or 'debug'.
>
> If you want to be able to debug this file, right click -> Debug as.. ->
> JUnit Test. You can set breakpoints, and evaluate parts of code - just
> select part of code and press Ctrl+Shift+I.
>
> Hope this helps.
>
>
>
>
>
>
> Abhijith CHandraprabhu wrote:
>
>>   I am a first time java user. After struggling with MAHOUT+MAVEN+ECLISE
>> for
>> a whole month, I have been able to get the system working. Could ony of
>> you
>> kindly save me sometime by letting me know how can I use a particular
>> function like ALSWRFactorizer.java. My main intention is to study the
>> ALS-WR factorization, hence I would like to see the way recommendation is
>> done on the test data in ALSWRFactorizerTest.java. Where should I write my
>> code if any. How can I check the code in Debug mode i.e with breakpoints
>> like in MATLAB.  I am willing to learn things myself, but i just need some
>> right direction. I spent a whole month is just knowing what is MAVEN and
>> ECLIPSE and setting up MAHOUT.
>>
>> I have no problems with the mathematical aspects, but I am not familiar
>> with the implementation in java, however I am hellbent on learning to
>> program with java but I am so lost.
>>
>>
>


-- 
Best regards,
Abhijith

Reply via email to