Skip to content

Regression

org.appng.core.controller.ControllerTest.testApplication

Failing for the past 1 build (Since Failed#35 )
Took 2 ms.

Error Message

Wanted but not invoked:
defaultEnvironment.setAttribute(
    REQUEST,
    "originalServletPath",
    "/manager/manager/application1/page1"
);
-> at org.appng.core.controller.ControllerTest.testApplication(ControllerTest.java:497)

However, there were other interactions with this mock:
defaultEnvironment.getAttribute(
    PLATFORM,
    "platformConfig"
);
-> at org.appng.api.RequestUtil.getSiteName(RequestUtil.java:218)

defaultEnvironment.getAttribute(
    PLATFORM,
    "sites"
);
-> at org.appng.api.RequestUtil.getSiteMap(RequestUtil.java:142)

defaultEnvironment.getAttribute(
    PLATFORM,
    "platformConfig"
);
-> at org.appng.core.controller.Controller.doGet(Controller.java:190)

Stacktrace

org.mockito.exceptions.verification.WantedButNotInvoked: 

Wanted but not invoked:
defaultEnvironment.setAttribute(
    REQUEST,
    "originalServletPath",
    "/manager/manager/application1/page1"
);
-> at org.appng.core.controller.ControllerTest.testApplication(ControllerTest.java:497)

However, there were other interactions with this mock:
defaultEnvironment.getAttribute(
    PLATFORM,
    "platformConfig"
);
-> at org.appng.api.RequestUtil.getSiteName(RequestUtil.java:218)

defaultEnvironment.getAttribute(
    PLATFORM,
    "sites"
);
-> at org.appng.api.RequestUtil.getSiteMap(RequestUtil.java:142)

defaultEnvironment.getAttribute(
    PLATFORM,
    "platformConfig"
);
-> at org.appng.core.controller.Controller.doGet(Controller.java:190)


	at org.appng.core.controller.ControllerTest.testApplication(ControllerTest.java:497)
	at org.appng.core.controller.ControllerTest.testApplication(ControllerTest.java:483)

Standard Output

2021-07-01 14:45:56,048 INFO  [main] org.appng.core.controller.Controller: Controller created
2021-07-01 14:45:56,048 INFO  [main] org.appng.api.support.SiteClassLoader: SiteClassLoader#1932668617 for site manager with parent sun.misc.Launcher$AppClassLoader#1252169911 created