Package za.co.javajoe.oop.inheritance

Source Code of za.co.javajoe.oop.inheritance.inheritenceTest

package za.co.javajoe.oop.inheritance;

import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.junit.Test;
import za.co.javajoe.oop.inheritance.checkForInheritance;
import za.co.javajoe.oop.inheritance.classA;
import za.co.javajoe.oop.inheritance.classB;
import za.co.javajoe.oop.inheritance.classC;

import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertThat;

/**
* Created with IntelliJ IDEA.
* User: letladi
* Date: 2014/07/02
* Time: 11:06 AM
* To change this template use File | Settings | File Templates.
*/
public class inheritenceTest {

    @Test
    public void firstCheck(){

      checkForInheritance checker = new checkForInheritance();
      assertThat(checker.firstCheck(),equalTo("this is method in classB,firstVriableforA"));

    }
}
TOP

Related Classes of za.co.javajoe.oop.inheritance.inheritenceTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.