package rmi; /** Sample class demonstrating unit tests, together with SampleUnitTest.

This class and SampleUnitTest should be deleted before handin.

This is a package-private class, not accessible to conformance tests, and not part of any public interface. If you have such a class, you can still write tests for it, if you wish. The class SampleUnitTest, located in unit/common/SampleUnitTest.java in the project directory, is able to access this class because it is in the same package (common).

Unit tests are a clean way to test complicated non-public classes in your packages, without polluting the main source code directories with non-production code. The unit tests are in a parallel source tree under the directory unit/. */ class SampleClassUnderTest { /** Returns the triple of its argument. */ int triple(int x) { return x * 3; } }