generated from cuioss/cui-java-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing PortalApplicationProducer, adding unit-tests
- Loading branch information
Showing
14 changed files
with
150 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
modules/portal-ui-api/src/main/java/de/cuioss/portal/ui/api/theme/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
...s/portal-ui-api/src/main/java/de/cuioss/portal/ui/api/ui/context/ApplicationProducer.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...les/portal-ui-api/src/test/java/de/cuioss/portal/ui/api/menu/items/AboutMenuItemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.cuioss.portal.ui.api.menu.items; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Provider; | ||
|
||
import org.jboss.weld.junit5.auto.AddBeanClasses; | ||
import org.jboss.weld.junit5.auto.EnableAutoWeld; | ||
|
||
import de.cuioss.portal.core.test.junit5.EnablePortalConfiguration; | ||
import de.cuioss.portal.ui.api.menu.PortalMenuItem; | ||
import de.cuioss.test.valueobjects.junit5.contracts.ShouldHandleObjectContracts; | ||
|
||
@EnableAutoWeld | ||
@AddBeanClasses(AboutMenuItem.class) | ||
@EnablePortalConfiguration | ||
class AboutMenuItemTest implements ShouldHandleObjectContracts<AboutMenuItem> { | ||
|
||
@Inject | ||
@PortalMenuItem | ||
private Provider<AboutMenuItem> underTestProvider; | ||
|
||
@Override | ||
public AboutMenuItem getUnderTest() { | ||
return underTestProvider.get(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...es/portal-ui-api/src/test/java/de/cuioss/portal/ui/api/menu/items/AcountMenuItemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.cuioss.portal.ui.api.menu.items; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Provider; | ||
|
||
import org.jboss.weld.junit5.auto.AddBeanClasses; | ||
import org.jboss.weld.junit5.auto.EnableAutoWeld; | ||
|
||
import de.cuioss.portal.core.test.junit5.EnablePortalConfiguration; | ||
import de.cuioss.portal.ui.api.menu.PortalMenuItem; | ||
import de.cuioss.test.valueobjects.junit5.contracts.ShouldHandleObjectContracts; | ||
|
||
@EnableAutoWeld | ||
@AddBeanClasses(AccountMenuItem.class) | ||
@EnablePortalConfiguration | ||
class AcountMenuItemTest implements ShouldHandleObjectContracts<AccountMenuItem> { | ||
|
||
@Inject | ||
@PortalMenuItem | ||
private Provider<AccountMenuItem> underTestProvider; | ||
|
||
@Override | ||
public AccountMenuItem getUnderTest() { | ||
return underTestProvider.get(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...es/portal-ui-api/src/test/java/de/cuioss/portal/ui/api/menu/items/LogoutMenuItemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.cuioss.portal.ui.api.menu.items; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Provider; | ||
|
||
import org.jboss.weld.junit5.auto.AddBeanClasses; | ||
import org.jboss.weld.junit5.auto.EnableAutoWeld; | ||
|
||
import de.cuioss.portal.core.test.junit5.EnablePortalConfiguration; | ||
import de.cuioss.portal.ui.api.menu.PortalMenuItem; | ||
import de.cuioss.test.valueobjects.junit5.contracts.ShouldHandleObjectContracts; | ||
|
||
@EnableAutoWeld | ||
@AddBeanClasses(LogoutMenuItem.class) | ||
@EnablePortalConfiguration | ||
class LogoutMenuItemTest implements ShouldHandleObjectContracts<LogoutMenuItem> { | ||
|
||
@Inject | ||
@PortalMenuItem | ||
private Provider<LogoutMenuItem> underTestProvider; | ||
|
||
@Override | ||
public LogoutMenuItem getUnderTest() { | ||
return underTestProvider.get(); | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...rtal-ui-api/src/test/java/de/cuioss/portal/ui/api/menu/items/PreferencesMenuItemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package de.cuioss.portal.ui.api.menu.items; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Provider; | ||
|
||
import org.jboss.weld.junit5.auto.AddBeanClasses; | ||
import org.jboss.weld.junit5.auto.EnableAutoWeld; | ||
|
||
import de.cuioss.portal.core.test.junit5.EnablePortalConfiguration; | ||
import de.cuioss.portal.ui.api.menu.PortalMenuItem; | ||
import de.cuioss.test.valueobjects.junit5.contracts.ShouldHandleObjectContracts; | ||
|
||
@EnableAutoWeld | ||
@AddBeanClasses(PreferencesMenuItem.class) | ||
@EnablePortalConfiguration | ||
class PreferencesMenuItemTest implements ShouldHandleObjectContracts<PreferencesMenuItem> { | ||
|
||
@Inject | ||
@PortalMenuItem | ||
private Provider<PreferencesMenuItem> underTestProvider; | ||
|
||
@Override | ||
public PreferencesMenuItem getUnderTest() { | ||
return underTestProvider.get(); | ||
} | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
modules/portal-ui-api/src/test/java/de/cuioss/portal/ui/api/menu/items/UserMenuItemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package de.cuioss.portal.ui.api.menu.items; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Provider; | ||
|
||
import org.jboss.weld.junit5.auto.AddBeanClasses; | ||
import org.jboss.weld.junit5.auto.EnableAutoWeld; | ||
|
||
import de.cuioss.portal.core.test.junit5.EnablePortalConfiguration; | ||
import de.cuioss.portal.core.test.mocks.authentication.PortalTestUserProducer; | ||
import de.cuioss.portal.ui.api.menu.PortalMenuItem; | ||
import de.cuioss.portal.ui.api.test.support.PortalResourceBundleMock; | ||
import de.cuioss.test.valueobjects.junit5.contracts.ShouldHandleObjectContracts; | ||
|
||
@EnableAutoWeld | ||
@AddBeanClasses({ UserMenuItem.class, PortalTestUserProducer.class, PortalResourceBundleMock.class }) | ||
@EnablePortalConfiguration | ||
class UserMenuItemTest implements ShouldHandleObjectContracts<UserMenuItem> { | ||
|
||
@Inject | ||
@PortalMenuItem | ||
private Provider<UserMenuItem> underTestProvider; | ||
|
||
@Override | ||
public UserMenuItem getUnderTest() { | ||
return underTestProvider.get(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters