From 4c0a30694367c00c90656526d2fd0ddb4e3704cf Mon Sep 17 00:00:00 2001 From: Stevo Slavic Date: Sat, 5 Jan 2013 23:06:09 +0100 Subject: [PATCH 1/2] Mark all IsFastEnough tests as performance tests This patch marks remaining/missed tests as ones belonging to performance tests group. Issue: SPR-9984 --- .../org/springframework/web/bind/ServletRequestUtilsTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-web/src/test/java/org/springframework/web/bind/ServletRequestUtilsTests.java b/spring-web/src/test/java/org/springframework/web/bind/ServletRequestUtilsTests.java index ada52ec33c..334f4b0d78 100644 --- a/spring-web/src/test/java/org/springframework/web/bind/ServletRequestUtilsTests.java +++ b/spring-web/src/test/java/org/springframework/web/bind/ServletRequestUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -388,6 +388,7 @@ public class ServletRequestUtilsTests { @Test public void testGetIntParameterWithDefaultValueHandlingIsFastEnough() { + Assume.group(TestGroup.PERFORMANCE); MockHttpServletRequest request = new MockHttpServletRequest(); StopWatch sw = new StopWatch(); sw.start(); From f92f58d0b37c5bc03a355b9e3e1a0a99fe14478c Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 7 Jan 2013 13:06:59 -0800 Subject: [PATCH 2/2] Gradle 'api' task depends on 'jar' tasks Update the gradle 'api' task to depend on the 'jar' task of all subprojects. This intern ensures that the 'asmRepackJar' and 'cglibRepackJar' tasks run which is critical for JavaDoc generation. --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 8c0a1b4245..b9533242d5 100644 --- a/build.gradle +++ b/build.gradle @@ -788,6 +788,11 @@ configure(rootProject) { description = "Generates aggregated Javadoc API documentation." title = "${rootProject.description} ${version} API" + dependsOn { + subprojects.collect { + it.tasks.getByName("jar") + } + } options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED options.author = true options.header = rootProject.description