@DataSet
public class CdmEntitySessionAwareTest extends RemotingSessionAwareTest {
+ @SuppressWarnings("unused")
private static final Logger logger = Logger.getLogger(CdmEntitySessionAwareTest.class);
UUID polytomousKeyUuid = UUID.fromString("0d53ba20-7de4-4baa-bd8a-401048447d66");
Assert.fail();
}
-
-
-
// retrieving subkey shows its null
subKey = CdmBase.deproxy(polytomousKeyService.find(subKeyUuid),PolytomousKey.class);
Assert.assertNull(subKey);
pKey = CdmBase.deproxy(polytomousKeyService.find(polytomousKeyUuid),PolytomousKey.class);
-
-
}
try {
List<Feature> features = termService.list(Feature.class, 100, 0, null, null);
- List<UUID> updateTerms = new ArrayList<UUID>();
+ List<UUID> updateTerms = new ArrayList<>();
for (Feature feature:features){
if (feature.getLabel().equals("UpdateTest")){
updateTerms.add(feature.getUuid());
}
@Test
- public void testThreadLocalActiveSession() throws InterruptedException {
- MockSessionOwner<CdmBase> so1 = new MockSessionOwner<CdmBase>();
+ public void testThreadLocalActiveSession() {
+ MockSessionOwner<CdmBase> so1 = new MockSessionOwner<>();
final ICdmEntitySession activeSession = getCdmEntitySessionManager().newSession(so1, true);
TestThread thread = new TestThread(true) {
@Override
}
};
invokeThread(thread);
- MockSessionOwner<CdmBase> so2 = new MockSessionOwner<CdmBase>();
+ MockSessionOwner<CdmBase> so2 = new MockSessionOwner<>();
ICdmEntitySession newActiveSession = getCdmEntitySessionManager().newSession(so2, true);
Assert.assertFalse(activeSession.equals(newActiveSession));
thread.unblock();