@Test void testDisableIfNotPublish_Publish() { boolean disabled = RunMode.disableIfNotPublish(PUBLISH_RUNMODES, componentContext, logger); assertFalse(disabled); verify(componentContext, never()).disableComponent(anyString()); }
@Deprecated public static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log) { return disableIfNoRunModeActive(runModes, new String[] { PUBLISH }, componentContext, log); }
RunMode { @Deprecated public static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log) { return disableIfNoRunModeActive(runModes, new String[] { PUBLISH }, componentContext, log); } }
RunMode { @Deprecated public static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log) { return disableIfNoRunModeActive(runModes, new String[] { PUBLISH }, componentContext, log); } private  RunMode(); }
RunMode { @Deprecated public static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log) { return disableIfNoRunModeActive(runModes, new String[] { PUBLISH }, componentContext, log); } private  RunMode(); @Deprecated static boolean is(Set<String> runModes, String... expectedRunModes); @Deprecated static boolean isAuthor(Set<String> runModes); @Deprecated static boolean isPublish(Set<String> runModes); @Deprecated static boolean disableIfNoRunModeActive(Set<String> runModes, String[] allowedRunModes,
      ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotAuthor(Set<String> runModes, ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log); }
RunMode { @Deprecated public static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log) { return disableIfNoRunModeActive(runModes, new String[] { PUBLISH }, componentContext, log); } private  RunMode(); @Deprecated static boolean is(Set<String> runModes, String... expectedRunModes); @Deprecated static boolean isAuthor(Set<String> runModes); @Deprecated static boolean isPublish(Set<String> runModes); @Deprecated static boolean disableIfNoRunModeActive(Set<String> runModes, String[] allowedRunModes,
      ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotAuthor(Set<String> runModes, ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log); static final String AUTHOR; static final String PUBLISH; }