Skip to content

Failed

org.appng.application.manager.business.RoleTest.testDelete

Failing for the past 1 build (Since Failed#140 )
Took 0.14 sec.

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages xmlns="http://www.appng.org/schema/platform" ref="delete-role">
    <message ref="delete-role" class="ERROR">Role does not exist.</message>
</messages>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages xmlns="http://www.appng.org/schema/platform" ref="delete-role">
    <message ref="delete-role" class="ERROR">Role does not exist.</message>
</messages>
, org.custommonkey.xmlunit.Diff
[different] Expected attribute value 'OK' but was 'ERROR' - comparing <message class="OK"...> at /messages[1]/message[1]/@class to <message class="ERROR"...> at /messages[1]/message[1]/@class

	at org.appng.application.manager.business.RoleTest.testDelete(RoleTest.java:96)

Standard Error

[main] ERROR org.appng.application.manager.business.Roles - error while performing action
org.appng.api.BusinessException: No such ApplicationRole 2
	at org.appng.core.service.CoreService.deleteRole(CoreService.java:1482)
	at org.appng.application.manager.service.ManagerService.deleteRole(ManagerService.java:208)
	at org.appng.application.manager.service.ManagerService$$FastClassBySpringCGLIB$$bbf10b1e.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:737)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:672)
	at org.appng.application.manager.service.ManagerService$$EnhancerBySpringCGLIB$$845e3b03.deleteRole(<generated>)
	at org.appng.application.manager.business.Roles.perform(Roles.java:65)
	at org.appng.application.manager.business.Roles.perform(Roles.java:42)
	at org.appng.api.support.CallableAction.execute(CallableAction.java:438)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:336)
	at org.appng.api.support.CallableAction.perform(CallableAction.java:308)
	at org.appng.application.manager.business.RoleTest.testDelete(RoleTest.java:95)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)