@Test(expected = IllegalStateException.class) public void testEraseInDifferentThread() throws Exception { final VitamSession session = new VitamSession(new VitamThreadFactory.VitamThread(null, 0)); session.erase(); }
public void erase() { mutateFrom(new VitamSession(owningThread)); }
VitamSession { public void erase() { mutateFrom(new VitamSession(owningThread)); } }
VitamSession { public void erase() { mutateFrom(new VitamSession(owningThread)); } VitamSession(VitamThreadFactory.VitamThread owningThread); }
VitamSession { public void erase() { mutateFrom(new VitamSession(owningThread)); } VitamSession(VitamThreadFactory.VitamThread owningThread); static VitamSession from(VitamSession origin); Object getOther(); VitamSession setOther(Object other); String getRequestId(); void setRequestId(String newRequestId); void setInternalRequestId(String newRequestId); String getInternalRequestId(); Integer getTenantId(); void setTenantId(Integer newTenantId); void setRequestId(GUID guid); String getContractId(); void setContractId(String contractId); AccessContractModel getContract(); void setContract(AccessContractModel contract); String getContextId(); void setContextId(String contextId); String getSecurityProfileIdentifier(); void setSecurityProfileIdentifier(String securityProfileIdentifier); String getApplicationSessionId(); void setApplicationSessionId(String applicationSessionId); String getPersonalCertificate(); void setPersonalCertificate(String personalCertificate); void mutateFrom(@NotNull VitamSession newSession); void erase(); void checkValidRequestId(); void initIfAbsent(Integer tenantId); @Override String toString(); }
VitamSession { public void erase() { mutateFrom(new VitamSession(owningThread)); } VitamSession(VitamThreadFactory.VitamThread owningThread); static VitamSession from(VitamSession origin); Object getOther(); VitamSession setOther(Object other); String getRequestId(); void setRequestId(String newRequestId); void setInternalRequestId(String newRequestId); String getInternalRequestId(); Integer getTenantId(); void setTenantId(Integer newTenantId); void setRequestId(GUID guid); String getContractId(); void setContractId(String contractId); AccessContractModel getContract(); void setContract(AccessContractModel contract); String getContextId(); void setContextId(String contextId); String getSecurityProfileIdentifier(); void setSecurityProfileIdentifier(String securityProfileIdentifier); String getApplicationSessionId(); void setApplicationSessionId(String applicationSessionId); String getPersonalCertificate(); void setPersonalCertificate(String personalCertificate); void mutateFrom(@NotNull VitamSession newSession); void erase(); void checkValidRequestId(); void initIfAbsent(Integer tenantId); @Override String toString();  }