Package h07

Class TemplateTests.MonoidTemplateTest

    • Field Detail

      • zero

        public final Method zero
        Method object for Monoid.zero()
      • add

        public final Method add
        Method object for Monoid.add(M, M)
    • Method Detail

      • testDefinition

        @Test
        public void testDefinition()
        Tests the definition of Monoid.
        • Asserts that the interface...
          • is public
          • is generic and has a type parameter M
        • Asserts that zero() is public and abstract and has return type M
        • Asserts that add(M, M) is public and abstract and has return type M
        Specified by:
        testDefinition in class TestClass