Cleaned up test in DesignSpaceTest.java

testDesignSpaceFromFile:
The test expects an exception and doesn't try to catch any.
The expected exception is a ClassCastException. It's likely that an
InPUTException should really be thrown, but the interface doesn't say.
Cleaned up a test in DesignSpaceTest.java

testDesignSpaceFromInputStream:
InPUTExceptions and FileNotFoundExceptions are thrown, not caught.
Cleaned up a test in DesignTest.java

testDesign:
Renamed the test to be more descriptive.
The test catches an InPUTException instead of any Exception.
Cleaned up tests in IDesignSpaceTest.java

Only catching specific exceptions, rather than Exception.
Broke a test in IDesignSpaceTest.java

testNegativeNextParameterConstructorOverride:
An InPUTException seems to be semi-expected (it is caught, but the absense of
such an exception doesn't lead to failure). The test then goes on to check
the type of the returned value. An InPUTException is indeed thrown, which
may or may not be intended. If it is intended, then the type test would seem
to be irrelevant.

The test now throws the InPUTException and fails.
Broke a test in IDesignSpace.java

testSetFixedNegative:
According to a comment, the intent of the test seems to be that a fixed value
cannot be set. Three out of four lines actually succeed. The failing line
seems to fail for the wrong reasons (invalid id).
Two minor cleanups in IDesignSpaceTest.java

testSetFixedComplex:
Added a "Not implemented yet." message to the fail() call.

testSetFixedNumerical:
Replaced assertEquals(true, value) with assertTrue(value).
Renamed a test to be more descriptive

Renamed testDesign to void testCreatingDesignsWithInvalidFileNamesShouldFail
in DesignTest.java.
Rearranged a test in IDesignTest.java

Changed testSetReadOnly for consistency with other tests.
An exception is no longer declared to be expected. A try block with a fail()
invocation is used instead.
Minor bug fix

Design.initDesignSpace(...) uses the Design(Document, String) constructor
instead of the Design(Document) constructor.
This change makes IDesignTest.testGetSpace() pass.
Cleaned and extended a test in IDesignTest.java

Added a helper method setAndCompare that takes a value object and a parameter
id. It tests that setting and then getting the parameter yields the original
value, with the additional constraint that the test value must be different
from any value that is already set.
testSetPrimitive uses the new helper method, making it cleaner.
Cleaned up a test in IDesignTest.java

testSetPrimitiveNegative only catches InPUTExceptions rather than Exceptions.
Also changed the method declaration, since no InPUTExceptions are thrown.
Fixed a test and a possible bug in Range

The IDesignTest.testSetRelativePrimitives checks that an out of range value
will not be accepted. The catch(Exception) was hiding a NullPointerException
that was being thrown while performing range checking.
Trying to fix that error seemed to reveal a bug in the range checking itself.
Based on the test case and the exception that is generated in response to the
range violation, it looked like the comparison was reversed.
The test has been changed to expect the IllegalArgumentException, but not an
InPUTException.
These changes make the test pass.
Cleaned up a test in IDesignTest.java

testSetInjectedStructural catches InPUTException instead of Exception.
Rearranged a test in IDesignTest.java

Changed testSetStructural for consistency with the other tests.
An expected exception is no longer declared. A try block with a fail()
invocation is used instead.
Split a test in IDesignTest.java

testSetArrayNegative is split into
testSetValueForFixedArrayElementShouldFail and
testSetValueForArrayElementWithOutOfRangeIndexShouldFail.

Since a fixed value is already supposed to cause an exception, perhaps
the out of range test should use a non-fixed array instead?
Cleaned up a test in IDesignTest.java

testSetArray catches InPUTExceptions instead of Exceptions.
Added error messages to fail() calls.
Cleaned up a test in IDesignTest.java

Replaced an if-clause followed by a fail() with an assertTrue in
testGetComplex.
Cleaned up a test in IDesignTest.java

No exceptions are expected, so the try-catch has been removed.
Minor cleanup of test in IDesignTest.java

Only catches InPUTExceptions instead of Exceptions.
Two fail messages have also been tweaked a little.