[jboss-jira] [JBoss JIRA] (WFLY-2879) Remove duplicated code from test cases where custom modules are needed

RH Bugzilla Integration (JIRA) issues at jboss.org
Tue Jan 20 02:07:50 EST 2015


    [ https://issues.jboss.org/browse/WFLY-2879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13033729#comment-13033729 ] 

RH Bugzilla Integration commented on WFLY-2879:
-----------------------------------------------

Petr Kremensky <pkremens at redhat.com> changed the Status of [bug 1147390|https://bugzilla.redhat.com/show_bug.cgi?id=1147390] from POST to CLOSED

> Remove duplicated code from test cases where custom modules are needed
> ----------------------------------------------------------------------
>
>                 Key: WFLY-2879
>                 URL: https://issues.jboss.org/browse/WFLY-2879
>             Project: WildFly
>          Issue Type: Enhancement
>          Components: Test Suite
>    Affects Versions: 8.1.0.Final
>            Reporter: Pedro Igor
>            Assignee: Pedro Igor
>
> When writing some integration tests for the PicketLink subsystem, I've noticed that there is no utility class or API to make easier create and remove custom modules from the modules directory.
> There are a few tests with this requirement, and most of them are replicating code.
> After discussing with [~kabirkhan], he suggested to open this JIRA to review those test cases and make them use a reusable component to work with custom modules.
> I've already wrote a class that I think can satisfy all test cases requiring a custom module. 
> See https://github.com/pedroigor/wildfly/blob/WFLY-2733/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/picketlink/util/TestModule.java.
> Usage example: https://github.com/pedroigor/wildfly/blob/WFLY-2733/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/picketlink/idm/JPAEMFFromModuleBasedPartitionManagerTestCase.java#L81



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list