You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Concetto Elvio Bonafede (JIRA)" <ji...@apache.org> on 2011/02/22 12:06:38 UTC

[jira] Resolved: (STANBOL-10) KReS Rules Test Fails

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

Concetto Elvio Bonafede resolved STANBOL-10.
--------------------------------------------

    Resolution: Fixed

In this case the problem was due to an error in class KReSAddRecipe and in a conflict with slf4j-api version 1.5.2.
The error in the class has been resolved by adding a control, "if(r+1>(rules.size()-1)) break;". This control checks for the last rule of a recipe that does not precedes any other rules. Without the control there was error due to over size of the array index.
The second problem has been solved with the exclusion of library slf4j-log4j in the pom.xml file of this package.

> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira