@Test public void only_allows_one_order_argument() { try { Hooks.Before(1, 2); fail("CucumberException was not thrown"); } catch (CucumberException e) { assertEquals("Two order (Integer) arguments found; 1, and; 2", e.getMessage()); } }
public static void Before(Object... args) { addHook(args, true, false); }
Hooks { public static void Before(Object... args) { addHook(args, true, false); } }
Hooks { public static void Before(Object... args) { addHook(args, true, false); }  }
Hooks { public static void Before(Object... args) { addHook(args, true, false); }  static void World(Closure body); static void Before(Object... args); static void After(Object... args); static void AfterStep(Object... args); static void BeforeStep(Object... args); }
Hooks { public static void Before(Object... args) { addHook(args, true, false); }  static void World(Closure body); static void Before(Object... args); static void After(Object... args); static void AfterStep(Object... args); static void BeforeStep(Object... args);  }