Package org.junit.tests.junit3compatibility

Source Code of org.junit.tests.junit3compatibility.ClassRequestTest$PrivateSuiteMethod

package org.junit.tests.junit3compatibility;

import static org.junit.Assert.assertNull;

import org.junit.Test;
import org.junit.internal.builders.SuiteMethodBuilder;

public class ClassRequestTest {
    public static class PrivateSuiteMethod {
        static junit.framework.Test suite() {
            return null;
        }
    }

    @Test
    public void noSuiteMethodIfMethodPrivate() throws Throwable {
        assertNull(new SuiteMethodBuilder()
                .runnerForClass(PrivateSuiteMethod.class));
    }
}
TOP

Related Classes of org.junit.tests.junit3compatibility.ClassRequestTest$PrivateSuiteMethod

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.