Package org.junit.tests

Source Code of org.junit.tests.InaccessibleBaseClassTest

package org.junit.tests;

import org.junit.Test;
import org.junit.internal.runners.InitializationError;
import org.junit.internal.runners.MethodValidator;
import org.junit.tests.anotherpackage.Sub;

public class InaccessibleBaseClassTest
  @Test(expected=InitializationError.class)
  public void inaccessibleBaseClassIsCaughtAtValidation() throws InitializationError {
    MethodValidator methodValidator= new MethodValidator(Sub.class);
    methodValidator.validateAllMethods();
    methodValidator.assertValid();
  }
}
TOP

Related Classes of org.junit.tests.InaccessibleBaseClassTest

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.