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

2018-04-18 Thread Isaac Kamga
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  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 
> wrote:
>
> > Hello everyone,
> >
> > I've a question about testing in Apache Fineract CN.
> >
> > Is there a way to write tests in 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.
> >
>


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

2018-04-18 Thread Markus Geiss
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  wrote:

> Hello everyone,
>
> I've a question about testing in Apache Fineract CN.
>
> Is there a way to write tests in 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.
>


Extending component-test's test in the service module

2018-04-18 Thread Isaac Kamga
Hello everyone,

I've a question about testing in Apache Fineract CN.

Is there a way to write tests in service
/src/test/java
which extend the tests in the component-test

module ( such as TestCustomer.java

) ?
I've added component-test in the service's build.gradle

test scope and it's unable to import tests from the component-test module.

At Your Service,
Isaac Kamga.