JobConfig implements IdentifiedDataSerializable { public boolean isSuspendOnFailure() { return suspendOnFailure; }  @Nullable String getName(); @Nonnull JobConfig setName(@Nullable String name); boolean isSplitBrainProtectionEnabled(); @Nonnull JobConfig setSplitBrainProtection(boolean isEnabled); JobConfig setAutoScaling(boolean enabled); boolean isAutoScaling(); JobConfig setSuspendOnFailure(boolean suspendOnFailure); boolean isSuspendOnFailure(); @Nonnull ProcessingGuarantee getProcessingGuarantee(); @Nonnull JobConfig setProcessingGuarantee(@Nonnull ProcessingGuarantee processingGuarantee); long getSnapshotIntervalMillis(); @Nonnull JobConfig setSnapshotIntervalMillis(long snapshotInterval); @Nonnull @SuppressWarnings("rawtypes") JobConfig addClass(@Nonnull Class... classes); @Nonnull JobConfig addPackage(@Nonnull String... packages); @Nonnull JobConfig addJar(@Nonnull URL url); @Nonnull JobConfig addJar(@Nonnull File file); @Nonnull JobConfig addJar(@Nonnull String path); @Nonnull JobConfig addJarsInZip(@Nonnull URL url); @Nonnull JobConfig addJarsInZip(@Nonnull File file); @Nonnull JobConfig addJarsInZip(@Nonnull String path); @Nonnull JobConfig addClasspathResource(@Nonnull URL url); @Nonnull JobConfig addClasspathResource(@Nonnull URL url, @Nonnull String id); @Nonnull JobConfig addClasspathResource(@Nonnull File file); @Nonnull JobConfig addClasspathResource(@Nonnull File file, @Nonnull String id); @Nonnull JobConfig addClasspathResource(@Nonnull String path); @Nonnull JobConfig addClasspathResource(@Nonnull String path, @Nonnull String id); @Nonnull JobConfig attachFile(@Nonnull URL url); @Nonnull JobConfig attachFile(@Nonnull URL url, @Nonnull String id); @Nonnull JobConfig attachFile(@Nonnull File file); @Nonnull JobConfig attachFile(@Nonnull File file, @Nonnull String id); @Nonnull JobConfig attachFile(@Nonnull String path); @Nonnull JobConfig attachFile(@Nonnull String path, @Nonnull String id); @Nonnull JobConfig attachDirectory(@Nonnull URL url); @Nonnull JobConfig attachDirectory(@Nonnull URL url, @Nonnull String id); @Nonnull JobConfig attachDirectory(@Nonnull String path); @Nonnull JobConfig attachDirectory(@Nonnull String path, @Nonnull String id); @Nonnull JobConfig attachDirectory(@Nonnull File file); @Nonnull JobConfig attachDirectory(@Nonnull File file, @Nonnull String id); @Nonnull JobConfig attachAll(@Nonnull Map<String, File> idToFile); @Nonnull @PrivateApi Map<String, ResourceConfig> getResourceConfigs(); @Nonnull @EvolvingApi JobConfig registerSerializer(
            @Nonnull Class<T> clazz,
            @Nonnull Class<S> serializerClass
    ); @Nonnull @PrivateApi Map<String, String> getSerializerConfigs(); @Nonnull JobConfig setClassLoaderFactory(@Nullable JobClassLoaderFactory classLoaderFactory); @Nullable JobClassLoaderFactory getClassLoaderFactory(); @Nullable String getInitialSnapshotName(); @Nonnull JobConfig setInitialSnapshotName(@Nullable String initialSnapshotName); @Nonnull JobConfig setMetricsEnabled(boolean enabled); boolean isMetricsEnabled(); boolean isStoreMetricsAfterJobCompletion(); JobConfig setStoreMetricsAfterJobCompletion(boolean storeMetricsAfterJobCompletion); @Override int getFactoryId(); @Override int getClassId(); @Override void writeData(ObjectDataOutput out); @Override void readData(ObjectDataInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void when_default_then_suspendOnFailureDisabled() { JobConfig config = new JobConfig(); assertThat(config.isSuspendOnFailure(), equalTo(FALSE)); }