Skip to content

Regression

org.appng.core.controller.ControllerTest.testInvalidApplication

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

Error Message

Wanted but not invoked:
defaultEnvironment.setAttribute(
    REQUEST,
    "originalServletPath",
    "/manager/manager/pluin1/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/pluin1/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.testInvalidApplication(ControllerTest.java:489)

Standard Output

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