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

Dan Haywood closed ISIS-1938.
-----------------------------
    Resolution: Won't Fix

This is all being reworked for v2 / SB

> [WON'T FIX] Unable to specify FakeDataModule as a dependency using 
> ModuleAbstract#withAdditionalDependencies
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-1938
>                 URL: https://issues.apache.org/jira/browse/ISIS-1938
>             Project: Isis
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.16.2
>            Reporter: Dan Haywood
>            Priority: Minor
>             Fix For: 1.18.0
>
>
> as a workaround, had to override getDependencies()
> {code:java}
> java.lang.IllegalArgumentException: Module domainapp.modules.PetClinicModule 
> has returned class org.isisaddons.module.fakedata.FakeDataModule from 
> getAdditionalModules(). This class implements 'Module' interface so should 
> instead be returned from getDependencies()
> at 
> org.apache.isis.applib.Module$Util.transitiveAdditionalModulesOf(Module.java:150)
> at 
> org.apache.isis.applib.ModuleOrBuilderAbstract.withTransitiveFrom(ModuleOrBuilderAbstract.java:66)
> at 
> org.apache.isis.applib.AppManifestAbstract2$Builder.<init>(AppManifestAbstract2.java:99)
> at 
> org.apache.isis.applib.AppManifestAbstract2$Builder.forModule(AppManifestAbstract2.java:92)
> at 
> org.apache.isis.core.runtime.headless.IsisSystemBootstrapper.<init>(IsisSystemBootstrapper.java:60)
> at 
> org.apache.isis.core.runtime.headless.HeadlessWithBootstrappingAbstract.<init>(HeadlessWithBootstrappingAbstract.java:94)
> at 
> org.apache.isis.core.integtestsupport.IntegrationTestAbstract3.<init>(IntegrationTestAbstract3.java:160)
> at 
> org.apache.isis.core.integtestsupport.IntegrationTestAbstract3.<init>(IntegrationTestAbstract3.java:154)
> at 
> domainapp.modules.impl.PetClinicModuleIntegTestAbstract.<init>(PetClinicModuleIntegTestAbstract.java:34)
> at 
> domainapp.modules.impl.visits.integtests.Visit_enterOutcome_IntegTest.<init>(Visit_enterOutcome_IntegTest.java:37)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
> at 
> org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to