Search in sources :

Example 1 with Prototypes

use of com.tvd12.calabash.core.prototype.Prototypes in project calabash by youngmonkeys.

the class PrototypesTest method test.

@Test
public void test() {
    Prototypes prototypes = Prototypes.builder().addProxy(new ClassBProxy()).addProxy(new ClassAProxy()).build();
    ClassA origin = new ClassA();
    ClassA copy = prototypes.copy(origin);
    assert copy != origin;
}
Also used : Prototypes(com.tvd12.calabash.core.prototype.Prototypes) SimplePrototypes(com.tvd12.calabash.core.prototype.SimplePrototypes) Test(org.testng.annotations.Test)

Aggregations

Prototypes (com.tvd12.calabash.core.prototype.Prototypes)1 SimplePrototypes (com.tvd12.calabash.core.prototype.SimplePrototypes)1 Test (org.testng.annotations.Test)1