Search in sources :

Example 81 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-framework by spring-projects.

the class ProxyFactoryTests method testExclusionOfNonPublicInterfaces.

@Test
@Disabled("Not implemented yet, see https://jira.springframework.org/browse/SPR-5708")
public void testExclusionOfNonPublicInterfaces() {
    JFrame frame = new JFrame();
    ProxyFactory proxyFactory = new ProxyFactory(frame);
    Object proxy = proxyFactory.getProxy();
    assertThat(proxy instanceof RootPaneContainer).isTrue();
    assertThat(proxy instanceof Accessible).isTrue();
}
Also used : JFrame(javax.swing.JFrame) RootPaneContainer(javax.swing.RootPaneContainer) Accessible(javax.accessibility.Accessible) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 82 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-framework by spring-projects.

the class AutowiredAnnotationBeanPostProcessorTests method testGenericsBasedInjectionIntoTypeVariableSelectingBestMatchAgainstFactoryMethodSignature.

@Test
// SPR-11521
@Disabled
@SuppressWarnings("rawtypes")
public void testGenericsBasedInjectionIntoTypeVariableSelectingBestMatchAgainstFactoryMethodSignature() {
    RootBeanDefinition bd = new RootBeanDefinition(GenericInterface1Impl.class);
    bd.setFactoryMethodName("createErased");
    bf.registerBeanDefinition("bean1", bd);
    bf.registerBeanDefinition("bean2", new RootBeanDefinition(GenericInterface2Impl.class));
    bf.registerBeanDefinition("bean2a", new RootBeanDefinition(ReallyGenericInterface2Impl.class));
    bf.registerBeanDefinition("bean2b", new RootBeanDefinition(PlainGenericInterface2Impl.class));
    GenericInterface1Impl bean1 = (GenericInterface1Impl) bf.getBean("bean1");
    GenericInterface2Impl bean2 = (GenericInterface2Impl) bf.getBean("bean2");
    assertThat(bean1.gi2).isSameAs(bean2);
}
Also used : RootBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 83 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-framework by spring-projects.

the class DateFormattingTests method testBindDateAnnotatedWithFallbackError.

@Test
@Disabled
void testBindDateAnnotatedWithFallbackError() {
    // TODO This currently passes because of the Date(String) constructor fallback is used
    MutablePropertyValues propertyValues = new MutablePropertyValues();
    propertyValues.add("styleDate", "Oct 031, 2009");
    binder.bind(propertyValues);
    assertThat(binder.getBindingResult().getFieldErrorCount("styleDate")).isEqualTo(1);
    assertThat(binder.getBindingResult().getFieldValue("styleDate")).isEqualTo("Oct 031, 2009");
}
Also used : MutablePropertyValues(org.springframework.beans.MutablePropertyValues) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) Disabled(org.junit.jupiter.api.Disabled)

Example 84 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-framework by spring-projects.

the class LocalVariableTableParameterNameDiscovererTests method classesWithoutDebugSymbols.

@Disabled("Ignored because Ubuntu packages OpenJDK with debug symbols enabled. See SPR-8078.")
@Test
void classesWithoutDebugSymbols() throws Exception {
    // JDK classes don't have debug information (usually)
    Class<Component> clazz = Component.class;
    String methodName = "list";
    Method m = clazz.getMethod(methodName);
    String[] names = discoverer.getParameterNames(m);
    assertThat(names).isNull();
    m = clazz.getMethod(methodName, PrintStream.class);
    names = discoverer.getParameterNames(m);
    assertThat(names).isNull();
    m = clazz.getMethod(methodName, PrintStream.class, int.class);
    names = discoverer.getParameterNames(m);
    assertThat(names).isNull();
}
Also used : PrintStream(java.io.PrintStream) Method(java.lang.reflect.Method) Component(java.awt.Component) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 85 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-framework by spring-projects.

the class PathMatchingResourcePatternResolverTests method classpathStarWithPatternOnFileSystem.

@Disabled
@Test
void classpathStarWithPatternOnFileSystem() throws IOException {
    Resource[] resources = resolver.getResources("classpath*:org/springframework/core/io/sup*/*.class");
    // Have to exclude Clover-generated class files here,
    // as we might be running as part of a Clover test run.
    List<Resource> noCloverResources = new ArrayList<>();
    for (Resource resource : resources) {
        if (!resource.getFilename().contains("$__CLOVER_")) {
            noCloverResources.add(resource);
        }
    }
    resources = noCloverResources.toArray(new Resource[0]);
    assertProtocolAndFilenames(resources, "file", StringUtils.concatenateStringArrays(CLASSES_IN_CORE_IO_SUPPORT, TEST_CLASSES_IN_CORE_IO_SUPPORT));
}
Also used : Resource(org.springframework.core.io.Resource) ArrayList(java.util.ArrayList) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Aggregations

Disabled (org.junit.jupiter.api.Disabled)228 Test (org.junit.jupiter.api.Test)214 File (java.io.File)13 TransactionalIntegrationTest (org.hisp.dhis.TransactionalIntegrationTest)13 NoGood (at.ac.tuwien.kr.alpha.core.common.NoGood)10 ArrayList (java.util.ArrayList)10 HashMap (java.util.HashMap)9 NAR (nars.NAR)9 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)9 BaseDataTest (org.apache.ibatis.BaseDataTest)8 TestNAR (nars.test.TestNAR)7 URL (org.apache.dubbo.common.URL)7 SqlSession (org.apache.ibatis.session.SqlSession)7 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)7 AnswerSet (at.ac.tuwien.kr.alpha.api.AnswerSet)6 ASPCore2Program (at.ac.tuwien.kr.alpha.api.programs.ASPCore2Program)6 FieldValueModel (com.synopsys.integration.alert.common.rest.model.FieldValueModel)6 IntegrationPerformanceTestRunner (com.synopsys.integration.alert.performance.utility.IntegrationPerformanceTestRunner)6 List (java.util.List)6 RectDouble2D (jcog.tree.rtree.rect.RectDouble2D)6