git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extending component-test's test in the service module


Hi Markus,

Thanks a million for your timely clarifications.

I had earlier tried to make the service module depend on the component-test
so I don't have to duplicate the component-test's code in
service/src/test/java module to document APIs. Now that this approach would
lead to a circular dependency, is there a way this redundancy can be
resolved ?

At Your Service,
Isaac Kamga.



On Wed, Apr 18, 2018 at 12:38 PM, Markus Geiss <mage@xxxxxxxxxx> wrote:

> Hey Isaac,
>
> service is only allowed to import the API module.
>
> Introducing such dependency as you mentioned would introduce a circular
> dependency, and component-test is a separate module just consuming API and
> service.
>
> Cheers
>
> Markus
>
> .::Yagni likes a DRY KISS::.
>
> On Wed, Apr 18, 2018 at 12:21 PM Isaac Kamga <isaac.kamga@xxxxxxxxx>
> wrote:
>
> > Hello everyone,
> >
> > I've a question about testing in Apache Fineract CN.
> >
> > Is there a way to write tests in service
> > <https://github.com/apache/fineract-cn-customer/tree/develop/service
> > >/src/test/java
> > which extend the tests in the component-test
> > <
> > https://github.com/apache/fineract-cn-customer/tree/
> develop/component-test
> > >
> > module ( such as TestCustomer.java
> > <
> > https://github.com/apache/fineract-cn-customer/blob/
> develop/component-test/src/main/java/org/apache/fineract/
> cn/customer/TestCustomer.java
> > >
> > ) ?
> > I've added component-test in the service's build.gradle
> > <
> > https://github.com/apache/fineract-cn-customer/blob/
> develop/service/build.gradle
> > >
> > test scope and it's unable to import tests from the component-test
> module.
> >
> > At Your Service,
> > Isaac Kamga.
> >
>