java.lang.IllegalStateException: no tenant active. if you do not want to use tenants, call Registry.activateMasterTenant() to assure the Master tenant is active.
This is what I get from the sample Junit TestCase below when startetd in ee. In this test I'm using an external Oracle database running on our integration server.
Can you please provide some info on how to do unit / integration testing in eclise or intellij. Thanks.
public class CustomerRegistrationIntegrationTest extends HybrisJUnit4TransactionalTest {
@Before
public void setUp() {Registry.activateMasterTenant(); }
@After
public void tearDown(){}
/**
* This is a sample test method.
*/
@Test
public void testMe() {
final boolean testTrue = true;
assertTrue("true is not true", testTrue);
}
}