diff options
author | Tor Norbye <tnorbye@google.com> | 2012-12-27 12:16:29 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-12-27 12:17:28 -0800 |
commit | 24071887e45635a6f2109c42aec60c538b444eac (patch) | |
tree | 6232b8304f0bca11b5bf1e5225fbb610bf0b880d /eclipse/plugins | |
parent | 41a6a9b379bb0e71ed60f456c0e4f6ddc7e38f76 (diff) | |
download | sdk-24071887e45635a6f2109c42aec60c538b444eac.zip sdk-24071887e45635a6f2109c42aec60c538b444eac.tar.gz sdk-24071887e45635a6f2109c42aec60c538b444eac.tar.bz2 |
Template unit test fix
When iterating over all the possible API versions,
include the max version too, not just all versions
smaller than it.
Change-Id: I8f7bfa18dafff445bc2f9080ed6275355342a6c5
Diffstat (limited to 'eclipse/plugins')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java index 2f43cf0..ece9b0f 100644 --- a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java +++ b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java @@ -336,7 +336,7 @@ public class TemplateHandlerTest extends SdkLoadingTestCase { continue; } - for (int targetSdk = minSdk; targetSdk < HIGHEST_KNOWN_API; targetSdk++) { + for (int targetSdk = minSdk; targetSdk <= HIGHEST_KNOWN_API; targetSdk++) { if (!isInterestingApiLevel(targetSdk)) { continue; } @@ -447,7 +447,7 @@ public class TemplateHandlerTest extends SdkLoadingTestCase { continue; } - for (int targetSdk = minSdk; targetSdk < HIGHEST_KNOWN_API; targetSdk++) { + for (int targetSdk = minSdk; targetSdk <= HIGHEST_KNOWN_API; targetSdk++) { if (!isInterestingApiLevel(targetSdk)) { continue; } |