@@ -0,0 +1,2050 @@
+package org.camunda.bpm.engine.test.standalone.entity;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseSentryPartEntity;%0Aimport org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseSentryPartQueryImpl;%0Aimport org.camunda.bpm.engine.impl.interceptor.Command;%0Aimport org.camunda.bpm.engine.impl.interceptor.CommandContext;%0Aimport org.camunda.bpm.engine.impl.interceptor.CommandExecutor;%0Aimport org.camunda.bpm.engine.impl.test.PluggableProcessEngineTestCase;%0A%0A/**%0A * @author Kristin Polenz%0A */%0Apublic class CaseSentryPartEntityTest extends PluggableProcessEngineTestCase %7B%0A%0A  public void testSentryWithTenantId() %7B%0A    CaseSentryPartEntity caseSentryPartEntity = new CaseSentryPartEntity();%0A    caseSentryPartEntity.setTenantId(%22tenant1%22);%0A%0A    insertCaseSentryPart(caseSentryPartEntity);%0A%0A    caseSentryPartEntity = readCaseSentryPart();%0A    assertThat(caseSentryPartEntity.getTenantId(), is(%22tenant1%22));%0A%0A    deleteCaseSentryPart(caseSentryPartEntity);%0A  %7D%0A%0A  protected void insertCaseSentryPart(final CaseSentryPartEntity caseSentryPartEntity) %7B%0A    processEngineConfiguration.getCommandExecutorTxRequired().execute(new Command%3CVoid%3E() %7B%0A%0A      @Override%0A      public Void execute(CommandContext commandContext) %7B%0A        commandContext.getCaseSentryPartManager().insert(caseSentryPartEntity);%0A        return null;%0A      %7D%0A    %7D);%0A  %7D%0A%0A  protected CaseSentryPartEntity readCaseSentryPart() %7B%0A    CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutorTxRequiresNew();%0A    return new CaseSentryPartQueryImpl(commandExecutor).singleResult();%0A  %7D%0A%0A  protected void deleteCaseSentryPart(final CaseSentryPartEntity caseSentryPartEntity) %7B%0A    processEngineConfiguration.getCommandExecutorTxRequired().execute(new Command%3CVoid%3E() %7B%0A%0A      @Override%0A      public Void execute(CommandContext commandContext) %7B%0A        commandContext.getCaseSentryPartManager().delete(caseSentryPartEntity);%0A        return null;%0A      %7D%0A    %7D);%0A  %7D%0A%0A%7D%0A

test CaseSentryPartEntity for tenant id