gatein_portal_trunk_sun6 #904: Unstable
984 tests 4 failure(s) / +4
4 tests failed.
FAILED: org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testGetToken
Error Message:
expected:<[sessionHandle]0> but was:<[gadgets]0>
Stack Trace:
junit.framework.ComparisonFailure: expected:<[sessionHandle]0> but
was:<[gadgets]0>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testGetToken(TestGadgetTokenInfoService.java:94)
FAILED: org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testGetAllToken
Error Message:
9
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: 9
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$4.execute(GadgetTokenInfoService.java:98)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$4.execute(GadgetTokenInfoService.java:89)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$TokenTask.execute(GadgetTokenInfoService.java:162)
at org.exoplatform.commons.chromattic.ContextualTask.executeWith(ContextualTask.java:45)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService.getAllTokens(GadgetTokenInfoService.java:88)
at
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testGetAllToken(TestGadgetTokenInfoService.java:105)
FAILED: org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testSize
Error Message:
9
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: 9
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$4.execute(GadgetTokenInfoService.java:98)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$4.execute(GadgetTokenInfoService.java:89)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$TokenTask.execute(GadgetTokenInfoService.java:162)
at org.exoplatform.commons.chromattic.ContextualTask.executeWith(ContextualTask.java:45)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService.getAllTokens(GadgetTokenInfoService.java:88)
at
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.clearAllTokens(TestGadgetTokenInfoService.java:78)
at
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testSize(TestGadgetTokenInfoService.java:119)
FAILED: org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testDeleteToken
Error Message:
null
Stack Trace:
java.lang.IllegalStateException
at
org.chromattic.core.RemovedEntityContextState.getPropertyValue(RemovedEntityContextState.java:88)
at org.chromattic.core.ObjectContext.getPropertyValue(ObjectContext.java:139)
at
org.chromattic.core.mapper.property.JCRPropertySingleValuedPropertyMapper.get(JCRPropertySingleValuedPropertyMapper.java:65)
at
org.chromattic.core.mapper.property.JCRPropertySingleValuedPropertyMapper.get(JCRPropertySingleValuedPropertyMapper.java:61)
at org.chromattic.core.mapper.PropertyMapper$1.invoke(PropertyMapper.java:73)
at org.chromattic.core.ObjectContext.invoke(ObjectContext.java:65)
at
org.exoplatform.portal.gadget.core.GadgetTokenEntry_Chromattic.getAccessToken(GadgetTokenEntry_Chromattic.java:162)
at
org.exoplatform.portal.gadget.core.GadgetTokenEntry.getToken(GadgetTokenEntry.java:73)
at
org.exoplatform.portal.gadget.core.GadgetTokenContainer.removeToken(GadgetTokenContainer.java:41)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$3.execute(GadgetTokenInfoService.java:80)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$3.execute(GadgetTokenInfoService.java:76)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService$TokenTask.execute(GadgetTokenInfoService.java:162)
at org.exoplatform.commons.chromattic.ContextualTask.executeWith(ContextualTask.java:45)
at
org.exoplatform.portal.gadget.core.GadgetTokenInfoService.deleteToken(GadgetTokenInfoService.java:75)
at
org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testDeleteToken(TestGadgetTokenInfoService.java:126)
Changes for Build #904
[marko.strukelj] GTNPORTAL-2458 Add unit test for token services
Public URL:
https://hudson.jboss.org/hudson/job/gatein_portal_trunk_sun6/904
Private URL:
http://hudson.qa.jboss.com/hudson/job/gatein_portal_trunk_sun6/904/