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();
}
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);
}
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");
}
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();
}
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));
}
Aggregations