64656667686970
} @Test public void testInstanciation() { assertEquals(ONE_QUARTER, new Fraction(1, 4)); }
70717273747576
} @Test(expected = IllegalArgumentException.class) public void testInstanciationWithInvalidDenominator() { new Fraction(42, 0); }
165166167168169170171172
} @Test public void testNumerator() { Fraction f = valueOf("42 / 16"); assertEquals(42, f.numerator().intValue()); }
172173174175176177178179
} @Test public void testDenominator() { Fraction f = valueOf("42 / 16"); assertEquals(16, f.denominator().intValue()); }