Package com.google.appengine.tck.event

Examples of com.google.appengine.tck.event.TestLifecycleEvent


    protected final Logger log = Logger.getLogger(getClass().getName());

    private Object timestamp;

    protected static void enhanceTestContext(TestContext context) {
        TestLifecycleEvent event = TestLifecycles.createTestContextLifecycleEvent(null, context);
        TestLifecycles.before(event);
    }
View Full Code Here


public class TestUtils {
    // a hack to clean the DS after test
    public static void clean() {
        try {
            DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
            TestLifecycleEvent event = TestLifecycles.createServiceLifecycleEvent(null, ds);
            TestLifecycles.after(event);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        }
    }

    protected static void clear() {
        LogService service = LogServiceFactory.getLogService();
        TestLifecycleEvent event = TestLifecycles.createServiceLifecycleEvent(LoggingTestBase.class, service);
        TestLifecycles.after(event);
    }
View Full Code Here

                if (isIgnore(clazz) == false) {
                    log.info("Adding test class: " + clazz.getName());
                    context.addClass(clazz);

                    if (strategy.doMerge(context, clazz)) {
                        TestLifecycleEvent event = TestLifecycles.createMergeLifecycleEvent(clazz, context.getWar());

                        TestLifecycles.before(event);
                        try {
                            WebArchive war = readWebArchive(clazz);
                            merge(context, war);
View Full Code Here

TOP

Related Classes of com.google.appengine.tck.event.TestLifecycleEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.