public final class PrintHelper
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
PrintHelper()
Constructor for Utility class.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
printAndRead(AssignmentFile toPrint,
java.lang.String expectedString,
java.lang.String packageName)
Prints the given object, reads the result and checks if and only if the result is equals the
given String expectedString.
|
static boolean |
printAndRead(DefinitionFile toPrint,
java.lang.String expectedString,
java.lang.String packageName)
Prints the given object, reads the result and checks if and only if the result is equals the
given String expectedString.
|
static boolean |
printAndRead(TypeFile toPrint,
java.lang.String expectedString,
java.lang.String packageName)
Prints the given object, reads the result and checks if and only if the result is equals the
given String expectedString.
|
public static boolean printAndRead(AssignmentFile toPrint, java.lang.String expectedString, java.lang.String packageName) throws PrinterException
toPrint - The Object to print.expectedString - The expected String.packageName - the name of package.PrinterException - If a IOException is thrown.public static boolean printAndRead(TypeFile toPrint, java.lang.String expectedString, java.lang.String packageName) throws PrinterException
packageName - the name of package.toPrint - The Object to print.expectedString - The expected String.PrinterException - If a IOException is thrown.public static boolean printAndRead(DefinitionFile toPrint, java.lang.String expectedString, java.lang.String packageName) throws PrinterException
packageName - the name of package.toPrint - The Object to print.expectedString - The expected String.PrinterException - If a IOException is thrown.