Package org.moresbycoffee.mbyhave8.hooks

Examples of org.moresbycoffee.mbyhave8.hooks.MByHave8Hooks.endFeature()


        final HookTestSpec hookTestSpec = new HookTestSpec();
        final Method[] afterFeatureMethods = new Method[] { HookTestSpec.class.getDeclaredMethod("afterFeature", Feature.class, FeatureResult.class) };
        final MByHave8Hooks hook = new HookAnnotations(null, null, null, afterFeatureMethods, null, null).toMByHaveHook(hookTestSpec);

        hook.endFeature(mock(Feature.class), FeatureResult.Success);

        assertTrue(HookTestSpec.afterFeature.get().get());

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.