Example: A class representing fractions

exercise No. 128

Q:

Implement a class representing fractions. You may find a dummy implementation containing some (not yet working) sample usage code being contained in a main() method.

This Maven archive does include a Junit test currently being disabled by an @Disabled directive:

public class FractionTest {
  /**
   * Sums and products of fractions
   */
  @Disabled // Remove me after completing your implementation
  @Test
  public void testAdditionMultiply() {

The current skeleton will yield a NullPointerException on test execution. After completing your implementation remove this @Disabled directive allowing for test execution.

A:

See implementation at Fraction.