Skip to content

Failed

org.appng.application.manager.business.SubjectsTest.testDelete

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

Error Message

XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '1' but was '2' - comparing <messages...> at /messages[1] to <messages...> at /messages[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages xmlns="http://www.appng.org/schema/platform" ref="delete">
    <message ref="delete" class="ERROR">User does not exist.</message>
    <message ref="delete" class="ERROR">Failed to delete the user.</message>
</messages>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '1' but was '2' - comparing <messages...> at /messages[1] to <messages...> at /messages[1]

Stacktrace

junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '1' but was '2' - comparing <messages...> at /messages[1] to <messages...> at /messages[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages xmlns="http://www.appng.org/schema/platform" ref="delete">
    <message ref="delete" class="ERROR">User does not exist.</message>
    <message ref="delete" class="ERROR">Failed to delete the user.</message>
</messages>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '1' but was '2' - comparing <messages...> at /messages[1] to <messages...> at /messages[1]

	at org.appng.application.manager.business.SubjectsTest.testDelete(SubjectsTest.java:138)

Standard Error

[main] ERROR org.appng.application.manager.business.Subjects - Failed to delete the user.
org.appng.api.BusinessException: No such subject 2
	at org.appng.application.manager.service.ManagerService.deleteSubject(ManagerService.java:173)
	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.deleteSubject(<generated>)
	at org.appng.application.manager.business.Subjects.perform(Subjects.java:80)
	at org.appng.application.manager.business.Subjects.perform(Subjects.java:48)
	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.SubjectsTest.testDelete(SubjectsTest.java:137)
	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)