private PrototypeFactoryTest verify(int markerval) { marker = markerval; PrototypeFactoryTest obj = (PrototypeFactoryTest) fact.factory_create(); org.junit.Assert.assertSame(getClass(), obj.getClass()); org.junit.Assert.assertNotSame(obj, this); org.junit.Assert.assertEquals(markerval, obj.marker); org.junit.Assert.assertEquals(markerval, this.marker); return obj; }
@Override public PrototypeFactory.PrototypeObject prototype_create() { PrototypeFactoryTest obj = new PrototypeFactoryTest(); obj.marker = marker; return obj; }