[JBoss JIRA] (DROOLS-2029) [Test Scenario] Test ScenarioTestEditorServiceImpl runScenario method
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2029?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-2029:
--------------------------------
Labels: drools-tools (was: )
> [Test Scenario] Test ScenarioTestEditorServiceImpl runScenario method
> ---------------------------------------------------------------------
>
> Key: DROOLS-2029
> URL: https://issues.jboss.org/browse/DROOLS-2029
> Project: Drools
> Issue Type: Task
> Components: Test Scenarios Editor
> Affects Versions: 7.2.0.Final
> Reporter: Jozef Marko
> Assignee: Jozef Marko
> Labels: drools-tools
> Attachments: 0001-GUVNOR-3447-Run-scenario-with-possible-transitive-im.patch
>
>
> The method runScenario of ScenarioTestEditorServiceImpl ensures that the Scenario uses correct imports during running. Most of tests tests just the method addDependentImportsToScenario that is internally used by runScenario method. Add more complex scenario that will use the method runScenario directly.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-1896) Unify ModelField creation accross drools-wb repository tests
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1896?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-1896:
--------------------------------
Labels: drools-tools (was: )
> Unify ModelField creation accross drools-wb repository tests
> ------------------------------------------------------------
>
> Key: DROOLS-1896
> URL: https://issues.jboss.org/browse/DROOLS-1896
> Project: Drools
> Issue Type: Task
> Components: Guided Decision Table Editor, Guided Rule Editor
> Affects Versions: 7.3.0.Final
> Reporter: Jozef Marko
> Assignee: Jozef Marko
> Priority: Minor
> Labels: drools-tools
>
> A lot of tests in the drools-wb/drools-wb-screens respository need a initialization using a lot of ModelFields instances. This initialization code is just calling of contructor multple times. The problem is that the constructor has like 5/6 parameters where just two of them are needed for tests.
> This task should introduce static method that will construct ModelField but the most of constructor arguments will be hardcoded. This static method should be reused in all drools-wb-drools-wb-screens client tests.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-1952) [DMN Editor] Introduce marshalling test in the way DMN - String - DMN
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1952?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-1952:
--------------------------------
Labels: drools-tools (was: )
> [DMN Editor] Introduce marshalling test in the way DMN - String - DMN
> ---------------------------------------------------------------------
>
> Key: DROOLS-1952
> URL: https://issues.jboss.org/browse/DROOLS-1952
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Affects Versions: 7.2.0.Final
> Reporter: Jozef Marko
> Assignee: Jozef Marko
> Labels: drools-tools
>
> Currently marshaling test assumes as the initial input a *.dmn file that is consequently converted to Graph, next this Graph is converted to XML and finally the XML is transformed to Graph that is asserted for required properties.
> This task should introduce test that will assume as an initial input Graph, that will be converted to JSON, this JSON will be converted again to Graph and finally this Graph will be asserted for required properties.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2623) Stabilize xls tables backend tests
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2623?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-2623:
--------------------------------
Labels: drools-tools (was: )
> Stabilize xls tables backend tests
> ----------------------------------
>
> Key: DROOLS-2623
> URL: https://issues.jboss.org/browse/DROOLS-2623
> Project: Drools
> Issue Type: Task
> Components: XLS Decision Table Editor
> Affects Versions: 7.8.0.Final
> Reporter: Jozef Marko
> Assignee: Jozef Marko
> Labels: drools-tools
>
> The xls tables backend tests fails in the way described bellow:
> {code:shell}
> [drools-wb-dtable-xls-editor-backend] mvn clean install
> ...
> Failed tests:
> DTCellValueUtilitiesTest.conversion:120->lambda$conversion$0:123 null
> DTCellValueUtilitiesTest.conversion:120->lambda$conversion$0:123 null
> {code}
> The problem occurs just if whole backend module run. Separate tests are passing.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2661) Fix blocker findbugs issues
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2661?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-2661:
--------------------------------
Labels: drools-tools (was: )
> Fix blocker findbugs issues
> ---------------------------
>
> Key: DROOLS-2661
> URL: https://issues.jboss.org/browse/DROOLS-2661
> Project: Drools
> Issue Type: Task
> Affects Versions: 7.8.0.Final
> Reporter: Jozef Marko
> Assignee: Jozef Marko
> Labels: drools-tools
>
> In the [report|https://sonarcloud.io/project/issues?id=org.drools%3Adrools-wb&resolved=false&severities=BLOCKER&types=BUG] can be seen blocker issues revealed by the finbugs in the drools-wb repository. The issues are caused by not closed InputStreams. ALl could be fixed by try-with-resources.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-711) Kie Server unable to build KieBase which builds fine with kie-maven-plugin and unit test
by Tibor Zimányi (JIRA)
[ https://issues.jboss.org/browse/DROOLS-711?page=com.atlassian.jira.plugin... ]
Tibor Zimányi commented on DROOLS-711:
--------------------------------------
Is this issue still relevant?
> Kie Server unable to build KieBase which builds fine with kie-maven-plugin and unit test
> ----------------------------------------------------------------------------------------
>
> Key: DROOLS-711
> URL: https://issues.jboss.org/browse/DROOLS-711
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.2.0.CR4, 6.2.0.Final
> Environment: kie-server on WildFly 8.2.0.Final running with JDK 8
> Reporter: Matteo Mortari
> Assignee: Mario Fusco
> Attachments: 20150213.DROOLS-711.zip
>
>
> I have deployed Kie Server kie-server-distribution-wars-6.2.0.CR4-ee7.war on WildFly 8.2.0.Final.
> I have a simple rule base in the project {{client-test-rules}} as per below, in a kie project structured as kie-drools-archetype, which passes all test and install in m2 repo with {{mvn clean install}}.
> {code:java}
> package com.acme.client_test_rules;
> declare Measurement
> @role(event)
> end
> rule "keep latest Measurement ID"
> salience 1000
> no-loop
> when
> $old : Measurement( $id : id )
> $new : Measurement( id == $id , this after $old )
> then
> System.out.println("keep latest old : "+$old+" new (kept): "+$new);
> retract($old);
> end
> {code}
> Then I issue Kie Server commands, using the client library, using project {{client-test}} to instantiate a container for the same artifact, but in the wildfly logs I get the following error below - which doesn't happen for kie-maven-plugin nor during unit test. Please note I'm assuming user {{kieserver}} with password {{kieserver}} is a valid user for the Kie Server Realm, or configure wildfly or the code in the project {{client-test}} accordingly to your environment =).
> {code}
> 09:41:41,700 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (default task-4) Unable to build KieBaseModel:kbase1
> Unable to create Field Extractor for 'id'Field/method 'id' not found for class 'com.acme.client_test_rules.Measurement'
> : [Rule name='keep latest Measurement ID']
> java.lang.RuntimeException: Field/method 'id' not found for class 'com.acme.client_test_rules.Measurement'
> Unable to create Field Extractor for 'id'Field/method 'id' not found for class 'com.acme.client_test_rules.Measurement'
> : [Rule name='keep latest Measurement ID']
> java.lang.RuntimeException: Field/method 'id' not found for class 'com.acme.client_test_rules.Measurement'
> Field Reader does not exist for declaration '$id' in 'predicate 'id == $id'' in the rule 'keep latest Measurement ID' : [Rule name='keep latest Measurement ID']
> Unable to Analyse Expression id == $id:
> [Error: unable to resolve method using strict-mode: com.acme.client_test_rules.Measurement.id()]
> [Near : {... id == $id ....}]
> ^
> [Line: 12, Column: 4] : [Rule name='keep latest Measurement ID']
> {code}
> Can you kindly verify if some bug is hiding behind this odd behavior, please?
> Thank you
> MM
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years