I’d like to create client IT but can’t find CubaClientTestCase class mentioned here:
5.7.3.3. Client Tier Integration Tests.
Where can I find it?
I’d like to create client IT but can’t find CubaClientTestCase class mentioned here:
5.7.3.3. Client Tier Integration Tests.
Where can I find it?
You have to add two dependencies to your build.gradle manually:
configure(guiModule) {
dependencies {
...
testCompile("com.haulmont.cuba:cuba-client:$cubaVersion:tests")
testCompile('org.jmockit:jmockit:1.15')
}
After that, re-create the IDEA project files, and you will be able to create a test class like this:
@RunWith(JMockit.class)
public class CustomerEditTest extends CubaClientTestCase {
private CustomerEdit customerEdit;
@Mocked Window.Editor frame;
@Before
public void setUp() throws Exception {
addEntityPackage("com.company.sample.entity");
setupInfrastructure();
customerEdit = new CustomerEdit();
customerEdit.setWrappedFrame(frame);
}
@Test
public void test() throws Exception {
customerEdit.doSomething();
}
}
Ok, tnx