[ 
https://issues.apache.org/jira/browse/STANBOL-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alessandro Adamou updated STANBOL-10:
-------------------------------------

    Attachment: kres-20101227.patch

Hi

I am posting a patch for non-OSGi component decoupling. Although it does not 
fix this issue entirely, it gets several KReS tests to work, so it's kind of a 
prerogative.

Changes:
** Added alternate constructors and activators to all KReS SCR components, for 
instantiation in environments that do not support SCR
** Jersey module and unit tests now call new constuctors if SCR instantiation 
fails
** Removed ONManager singleton method, and refactored kres.manager accordingly
** More System.out and System.err calls (incl. printStackTrace()) redirected to 
SLF4j
** Refactored KReS POMs for UTF-8 encoding (prevents platform-dependent builds)
** Removed SLF4J exports from KReS POMs to avoid conflicts

Because I am waiting for the committer status verdict, I was not synchronized 
with Stanbol yet, so I generated this patch via a Unix diff command from two 
local instances:

 % diff -w -u -r -x ".svn" -x "target" -x ".classpath" -x ".project" -x 
".settings" -N main-stanbol/kres main/kres > kres-20101227.patch

where the "main" dir is synced with googlecode and "main-stanbol" is synced 
with apache. This syntax should generate a svn-compliant diff. I successfully 
applied it locally with the patch command

 % cd main-stanbol/kres
 % patch -p2 -i ../../kres-20101227.patch

Thank You
Alessandro

> KReS Rules Test Fails
> ---------------------
>
>                 Key: STANBOL-10
>                 URL: https://issues.apache.org/jira/browse/STANBOL-10
>             Project: Stanbol
>          Issue Type: Bug
>          Components: KReS
>         Environment: Ubuntu, JDK1.6, Maven 2.2.1
>            Reporter: Fabian Christ
>         Attachments: 
> eu.iksproject.kres.semion.reengineer.db.DBExtractorTest.txt, 
> kres-20101227.patch, vcs-diff7641646626827419329.patch
>
>
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building IKS KReS Rules
> [INFO]    task-segment: [install]
> [INFO] 
> ------------------------------------------------------------------------
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running eu.iksproject.kres.rules.manager.KReSRemoveRecipeTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.772 sec
> Running eu.iksproject.kres.rules.manager.KReSRuleStoreTest
> ./src/main/resources/RuleOntology/TestKReSOntologyRules.owl
> ECCOMI 
> /home/fchrist/Coding/Apache/Stanbol/src/kres/eu.iksproject.kres.rules/src/main/resources/RuleOntology/rmi_config.owl
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.132 sec
> Running eu.iksproject.kres.rules.manager.KReSGetRecipeTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.69 sec
> Running eu.iksproject.kres.rules.manager.KReSGetRuleTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.388 sec
> Running eu.iksproject.kres.rules.manager.KReSLoadRuleFileTest
> http://kres.iks-project.eu/ontology/meta/rmi.owl#
> 106 121 106 121
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.349 sec
> Running eu.iksproject.kres.rules.manager.KReSAddRecipeTest
> Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.711 sec <<< 
> FAILURE!
> Running eu.iksproject.kres.rules.manager.KReSRemoveRuleTest
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.695 sec <<< 
> FAILURE!
> Running eu.iksproject.kres.rules.manager.KReSAddRuleTest
> entriamo http://kres.iks-project.eu/ontology/meta/rmi.owl#MyRuleA
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.337 sec
> Running eu.iksproject.kres.rules.parser.KReSRuleParserTest
> RULE : RULE http://kres.iks-project.eu/ontology/meta/variables#rule1 ASSERTS 
> THAT 
> IF
>        Individual http://kres.iks-project.eu/ontology/meta/variables#y has 
> object property http://kres.iks-project.eu/ontology/meta/variables#y that 
> refers to individual http://kres.iks-project.eu/ontology/meta/variables#z
>        AND Individual http://kres.iks-project.eu/ontology/meta/variables#x 
> has object property http://kres.iks-project.eu/ontology/meta/variables#x that 
> refers to individual http://kres.iks-project.eu/ontology/meta/variables#y
> IMPLIES
>        Individual http://kres.iks-project.eu/ontology/meta/variables#x has 
> object property http://kres.iks-project.eu/ontology/meta/variables#x that 
> refers to individual http://kres.iks-project.eu/ontology/meta/variables#z
> RULE LIST IS NULL
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.279 sec
> Results :
> Tests in error: 
>   testAddRecipe_3args_2(eu.iksproject.kres.rules.manager.KReSAddRecipeTest)
>   testRemoveSingleRule(eu.iksproject.kres.rules.manager.KReSRemoveRuleTest)
> Tests run: 23, Failures: 0, Errors: 2, Skipped: 0
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> The same error also occurs in the old IKS Google SVN code base.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to