//College1Test -- I test College1
import static java.lang.System.out;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.nio.charset.StandardCharsets;public class College1Test {
public static void main(String[] args) {
College1Test test = new College1Test();
test.test1();
out.println("");
//test.test2();
}
private void test1() {
out.printf("test1%n%n");
//Instantiate a College1 object
College1 college = new College1("Mountain Tech College");
college.add(new Professor1("Kofi Kingston"));
college.add(new Classroom1(101));
//Ask for a report of the college
ByteArrayOutputStream contents = new ByteArrayOutputStream();
PrintStream stream = new PrintStream(contents);
college.printFullReport(stream);
String report = new String(contents.toByteArray(), StandardCharsets.UTF_8);
//Print it
out.print(report);
}
}