Develop a class called ArrayUtilsImp
that
implements the interface org.pg4200.ex01.ArrayUtils
in
the exercises
module.
Create a concrete test class called ArrayUtilsImpTest
that
does extend the abstract test class org.pg4200.ex01.ArrayUtilsTestTemplate
.
Recall that test classes are under the src/test/java
folder.
If your implementation of ArrayUtilsImp
is correct,
then all tests should pass.
Using org.pg4200.les01.array.MyArrayListString
as a
reference, implement a class called MyArrayListInteger
which rather works on Integer
objects instead of String
.
Such class does not need to implement any interface.
Using org.pg4200.les01.MyListStringTestTemplate
as a reference, develop a concrete (not abstract) test class
called MyArrayListIntegerTest
, with the same kind
of tests, buf for MyArrayListInteger
.
Here you need to use Integer
inputs instead of String
.
All tests should pass.
Consider the class org.pg4200.ex01.TriangleClassification
.
Write a test class called TriangleClassificationTest
for it.
You need to write enough tests to achieve 100% line coverage.
Note: by default in IntelliJ, when running tests with
Run 'X' with Coverage
, coverage is calculated only on the
same package. If your tests are not in org.pg4200.ex01
,
then you need to set the Edit Configurations
, in particular
the options in the Code Coverage
tab.
Solutions to this exercise can be found in the solutions
module, under the org.pg4200.sol01
package.