Skip to content
Permalink
Browse files

Add 'Scaffold' to class names

  • Loading branch information...
danielb987 committed Sep 21, 2018
1 parent 8f85d60 commit fcd57bda07ff50111dfc8fa00c71455700b78751
@@ -33,14 +33,14 @@
import jmri.profile.Profile;
import jmri.profile.ProfileManager;
import jmri.progdebugger.DebugProgrammerManager;
import jmri.util.managers.InternalLightManagerThrowException;
import jmri.util.managers.MemoryManagerThrowException;
import jmri.util.managers.OBlockManagerThrowException;
import jmri.util.managers.SensorManagerThrowException;
import jmri.util.managers.SignalHeadManagerThrowException;
import jmri.util.managers.SignalMastManagerThrowException;
import jmri.util.managers.TurnoutManagerThrowException;
import jmri.util.managers.WarrantManagerThrowException;
import jmri.util.managers.InternalLightManagerThrowExceptionScaffold;
import jmri.util.managers.MemoryManagerThrowExceptionScaffold;
import jmri.util.managers.OBlockManagerThrowExceptionScaffold;
import jmri.util.managers.SensorManagerThrowExceptionScaffold;
import jmri.util.managers.SignalHeadManagerThrowExceptionScaffold;
import jmri.util.managers.SignalMastManagerThrowExceptionScaffold;
import jmri.util.managers.TurnoutManagerThrowExceptionScaffold;
import jmri.util.managers.WarrantManagerThrowExceptionScaffold;
import jmri.util.prefs.JmriConfigurationProvider;
import jmri.util.prefs.JmriPreferencesProvider;
import jmri.util.prefs.JmriUserInterfaceConfigurationProvider;
@@ -705,35 +705,35 @@ public static void initConditionalManager() {
}

public static void initInternalTurnoutManagerThrowException() {
InstanceManager.setDefault(TurnoutManager.class, new TurnoutManagerThrowException());
InstanceManager.setDefault(TurnoutManager.class, new TurnoutManagerThrowExceptionScaffold());
}

public static void initInternalSensorManagerThrowException() {
InstanceManager.setDefault(SensorManager.class, new SensorManagerThrowException());
InstanceManager.setDefault(SensorManager.class, new SensorManagerThrowExceptionScaffold());
}

public static void initLightManagerThrowException() {
InstanceManager.setDefault(LightManager.class, new InternalLightManagerThrowException());
InstanceManager.setDefault(LightManager.class, new InternalLightManagerThrowExceptionScaffold());
}

public static void initMemoryManagerThrowException() {
InstanceManager.setDefault(MemoryManager.class, new MemoryManagerThrowException());
InstanceManager.setDefault(MemoryManager.class, new MemoryManagerThrowExceptionScaffold());
}

public static void initSignalHeadManagerThrowException() {
InstanceManager.setDefault(SignalHeadManager.class, new SignalHeadManagerThrowException());
InstanceManager.setDefault(SignalHeadManager.class, new SignalHeadManagerThrowExceptionScaffold());
}

public static void initSignalMastManagerThrowException() {
InstanceManager.setDefault(SignalMastManager.class, new SignalMastManagerThrowException());
InstanceManager.setDefault(SignalMastManager.class, new SignalMastManagerThrowExceptionScaffold());
}

public static void initWarrantManagerThrowException() {
InstanceManager.setDefault(WarrantManager.class, new WarrantManagerThrowException());
InstanceManager.setDefault(WarrantManager.class, new WarrantManagerThrowExceptionScaffold());
}

public static void initOBlockManagerThrowException() {
InstanceManager.setDefault(OBlockManager.class, new OBlockManagerThrowException());
InstanceManager.setDefault(OBlockManager.class, new OBlockManagerThrowExceptionScaffold());
}

/**
@@ -2,17 +2,19 @@

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jmri.Light;
import jmri.jmrix.internal.InternalLightManager;

/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class InternalLightManagerThrowException extends InternalLightManager {
public class InternalLightManagerThrowExceptionScaffold extends InternalLightManager {

public InternalLightManagerThrowException() {
public InternalLightManagerThrowExceptionScaffold() {
super();
}

@@ -3,16 +3,18 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jmri.Memory;
import jmri.Turnout;
import jmri.managers.DefaultMemoryManager;

/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class MemoryManagerThrowException extends DefaultMemoryManager {
public class MemoryManagerThrowExceptionScaffold extends DefaultMemoryManager {

public MemoryManagerThrowException() {
public MemoryManagerThrowExceptionScaffold() {
super();
}

@@ -1,17 +1,19 @@
package jmri.util.managers;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jmri.jmrit.logix.OBlock;
import jmri.jmrit.logix.OBlockManager;

/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class OBlockManagerThrowException extends OBlockManager {
public class OBlockManagerThrowExceptionScaffold extends OBlockManager {

public OBlockManagerThrowException() {
public OBlockManagerThrowExceptionScaffold() {
super();
}

@@ -8,10 +8,13 @@
/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class SensorManagerThrowException extends InternalSensorManager {
public class SensorManagerThrowExceptionScaffold extends InternalSensorManager {

public SensorManagerThrowException() {
public SensorManagerThrowExceptionScaffold() {
super("I");
}

@@ -1,17 +1,18 @@
package jmri.util.managers;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jmri.SignalHead;
import jmri.managers.AbstractSignalHeadManager;

/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class SignalHeadManagerThrowException extends AbstractSignalHeadManager {
public class SignalHeadManagerThrowExceptionScaffold extends AbstractSignalHeadManager {

public SignalHeadManagerThrowException() {
public SignalHeadManagerThrowExceptionScaffold() {
super();
}

@@ -1,17 +1,19 @@
package jmri.util.managers;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jmri.SignalMast;
import jmri.managers.DefaultSignalMastManager;

/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class SignalMastManagerThrowException extends DefaultSignalMastManager {
public class SignalMastManagerThrowExceptionScaffold extends DefaultSignalMastManager {

public SignalMastManagerThrowException() {
public SignalMastManagerThrowExceptionScaffold() {
super();
}

@@ -8,10 +8,13 @@
/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class TurnoutManagerThrowException extends InternalTurnoutManager {
public class TurnoutManagerThrowExceptionScaffold extends InternalTurnoutManager {

public TurnoutManagerThrowException() {
public TurnoutManagerThrowExceptionScaffold() {
super("I");
}

@@ -1,17 +1,19 @@
package jmri.util.managers;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import jmri.jmrit.logix.Warrant;
import jmri.jmrit.logix.WarrantManager;

/**
* This manager always throws an IllegalArgumentException from provide and get methods.
* It is used for testing exception handling in tests.
*
* The class name ends with 'Scaffold' to exclude it from the coverage statistics,
* since it is part of the testing infrastructure.
*/
public class WarrantManagerThrowException extends WarrantManager {
public class WarrantManagerThrowExceptionScaffold extends WarrantManager {

public WarrantManagerThrowException() {
public WarrantManagerThrowExceptionScaffold() {
super();
}

0 comments on commit fcd57bd

Please sign in to comment.
You can’t perform that action at this time.