This repository was archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Fixes #262 - Integration testing more stable in maven. #283
Merged
aozarov
merged 3 commits into
GoogleCloudPlatform:async-support
from
jetty-project:bugs/262
Jun 9, 2016
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!DOCTYPE suppressions PUBLIC | ||
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | ||
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | ||
|
||
<suppressions> | ||
<suppress files="[a-zA-Z0-9]*IT.java" checks="AbbreviationAsWordInName"/> | ||
<suppress files="[a-zA-Z0-9]*IT.java" checks="JavadocMethod"/> | ||
<suppress files="[a-zA-Z0-9]*Test.java" checks="JavadocMethod"/> | ||
<suppress files="[\\/]generated-sources[\\/]" checks="[a-zA-Z0-9]*"/> | ||
</suppressions> | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
* | ||
* @author [email protected] (Freeland Abbott) | ||
*/ | ||
public class SessionManagerTest extends TestCase { | ||
public class SessionManagerIT extends TestCase { | ||
|
||
private static final int SESSION_EXPIRATION_SECONDS = 60; | ||
|
||
|
@@ -147,7 +147,7 @@ public String testNamespace() { | |
return ""; | ||
} | ||
|
||
public static class NamespacedStartTest extends SessionManagerTest { | ||
public static class NamespacedStartTest extends SessionManagerIT { | ||
@Override | ||
public String startNamespace() { | ||
return "start-namespace"; | ||
|
@@ -159,7 +159,7 @@ public String testNamespace() { | |
} | ||
} | ||
|
||
public static class NamespacedTest extends SessionManagerTest { | ||
public static class NamespacedTest extends SessionManagerIT { | ||
@Override | ||
public String startNamespace() { | ||
return ""; | ||
|
@@ -171,7 +171,7 @@ public String testNamespace() { | |
} | ||
} | ||
|
||
public static class NamespacedTestTest extends SessionManagerTest { | ||
public static class NamespacedTestTest extends SessionManagerIT { | ||
@Override | ||
public String startNamespace() { | ||
return "start-namespace"; | ||
|
@@ -511,7 +511,7 @@ public void testMemcacheOnlyLifecycle() { | |
* new SessionManager(Collections.<SessionStore>singletonList(new DatastoreSessionStore())); | ||
* HttpServletRequest request = makeMockRequest(true); | ||
* replay(request); | ||
* | ||
* <p> | ||
* AppEngineSession session = manager.newSession(request); | ||
* session.setAttribute("foo", "bar"); | ||
* session.save(); | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ | |
* | ||
* @author [email protected] (Tomas Isdal) | ||
*/ | ||
public class VmRuntimeJettySessionTest extends VmRuntimeTestBase { | ||
public class VmRuntimeJettySessionIT extends VmRuntimeTestBase { | ||
|
||
@Override | ||
protected void setUp() throws Exception { | ||
|
@@ -123,6 +123,7 @@ public void testWelcomeServlet() throws Exception { | |
// code = fetchResponseCode(createUrl("/_ah/health")); | ||
// assertEquals(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, code); | ||
// } | ||
|
||
/** | ||
* Create a datastore put response with the minimal fields required to make | ||
* the put succeed. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, should it be prefixed with
[/\\]test[/\\]src[/\\]java[/\\]
(also for the other IT, Test checks)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would vote for the simpler form, as maven is free to copy/move files around into the
/target/
(aka${project.build.directory}
) directory, which checkstyle also looks inside of.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can live with it though I wish we could avoid being lenient where we shouldn't.