Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
8c168e3
Upgrade JDOM from 1.0 to 2.0.6.1
wborn Jul 14, 2023
e8589d2
Merge pull request #85 from wborn/upgrade-jdom
cemartins Jul 14, 2023
90dd2e3
[maven-release-plugin] prepare release mockrunner-2.0.7
cemartins Jul 23, 2023
9458528
[maven-release-plugin] prepare for next development iteration
cemartins Jul 23, 2023
b01cf2f
Merge branch 'steinarb:master' into master
cemartins Aug 27, 2023
60d3a50
Add .editorconfig file to keep formatting consistent
steinarb May 28, 2024
b6c8607
Use version 4.4.6 of karaf-maven-plugin
steinarb May 28, 2024
fbdc91f
Add maven test scope dependency providing javax.rmi to mockrunner-ejb…
steinarb May 28, 2024
76feb66
Suppress cglib-full transitive mockejb dependency from mockrunner-ejb…
steinarb May 28, 2024
8b1d8d0
Use version 3.2.5 of maven-surefire-plugin
steinarb May 28, 2024
b7a62c8
Add "--add-opens java.base/java.lang=ALL-UNNAMED" to maven-surefire-p…
steinarb May 28, 2024
0624324
Add jacorb 3.9 as a maven dependency of mocrunner-ejb
steinarb May 28, 2024
45a772f
Merge pull request #86 from steinarb/java17-build-fixes
cemartins May 28, 2024
03db573
Use version 1.9.4 of commons-beanutils
steinarb May 28, 2024
23470c3
Revert "Add note to the readme.md that development has moved to githu…
steinarb May 31, 2024
c16b0fe
Remove mention of java 8/9 from readme.
steinarb May 31, 2024
fe28dbb
Merge pull request #88 from steinarb/fix-readme
cemartins Jun 1, 2024
ecf5979
Merge pull request #87 from steinarb/use-commons-beanutils-194
cemartins Aug 3, 2024
a4ac6e2
Upgrade maven dependency org.apache.tomcat/servlet-api to 6.0.53
steinarb May 21, 2026
c2d5ed8
Replace maven dependency org.apache.tomcat/servlet-api/6.0.53 javax.s…
steinarb May 21, 2026
5871a92
Ignore eclipse .metadata directory
steinarb May 21, 2026
96572c0
Change visibility of MockHttpServletRequest.getServletContext from pr…
steinarb May 21, 2026
b7ee407
Implement new methods and new interfaces from javax.servlet-api 4.0.1
steinarb May 21, 2026
03506db
Switch editorconfig indent_style from tab to space to align with exis…
steinarb May 23, 2026
b0e7e3e
Upgrade maven-surefire-plugin to version 3.5.5
steinarb May 23, 2026
9019874
Fix indentation of mockrunner-ejb/pom.xml
steinarb May 23, 2026
ff95f58
Replace space with equal sign in argLine config of maven-surefire-plugin
steinarb May 23, 2026
34e7d71
Extract and upload JVM dump and crash files on github action worflow …
steinarb May 23, 2026
a4d9541
Force surefire error generation in maven module mockrunner-ejb
steinarb May 23, 2026
3ac73ef
Add debug flags "-X -e" to maven build in github actions workflow
steinarb May 23, 2026
3fdfe84
Check system logs for memory (OOM) kills at the end of github actions…
steinarb May 23, 2026
690f3ab
Remove maven verbose flags from github actions CI workflow
steinarb May 23, 2026
c079e68
Merge pull request #91 from steinarb/upgrade-javax-servlet
cemartins May 24, 2026
fab7a4a
Add Junit jupiter 6.1.0, assertj 3.27.7 and mockito 5.23.0 to mockrun…
steinarb May 23, 2026
e03a8ad
Unify indentation and white space in mockrunner-servlet tests accordi…
steinarb May 23, 2026
20e8c29
Change scope of junit 4 maven dependency from provided to test in mav…
steinarb May 24, 2026
6f8244c
Move JUnit tests in mockrunner-servlet examples from src/main/java to…
steinarb May 24, 2026
2f29dc3
Remove JUnit 4 annotations from test base class in mockrunner-servlet…
steinarb May 24, 2026
f20b8f9
Apply editorconfig formatting to mockrunner-servlet pom.xml
steinarb May 24, 2026
fbf1ba2
Add test scoped maven dependencies for junit jupiter and assertj to m…
steinarb May 25, 2026
224be37
Change mockrunner-servlet unit tests from JUnit 3 style to JUnit jupi…
steinarb May 25, 2026
1013f2c
Use editorconfig formatting of example tests inheriting BasicServletT…
steinarb May 25, 2026
e2f0756
Change example tests inheriting BasicServletTestCaseAdapter from JUni…
steinarb May 25, 2026
e216292
Remove unused field in ImageButtonFieldTest
steinarb May 25, 2026
e690c0a
Use try-with-resource to remove warning about leaked resources
steinarb May 25, 2026
86517ca
Add generated serial version UID to JSP test tags
steinarb May 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ jobs:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Store JVM Crash and Surefire Logs
if: always() # Forces this step to run even if the Maven build fails
uses: actions/upload-artifact@v4
with:
name: maven-crash-logs
path: |
**/hs_err_pid*.log
**/target/surefire-reports/*.dump*
**/target/surefire-reports/*.txt
- name: Check System Logs for Memory (OOM) Kills
if: always()
run: dmesg | grep -i -E 'oom[-_]killer|killed process' || echo "No OS-level OOM kills detected."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/.project
/.settings/
/.DS_Store
/.metadata/
35 changes: 19 additions & 16 deletions mockrunner-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<parent>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner</artifactId>
<version>2.0.7-SNAPSHOT</version>
<relativePath>..</relativePath>
<version>2.0.8-SNAPSHOT</version>
</parent>

<artifactId>mockrunner-all</artifactId>
Expand All @@ -17,75 +16,75 @@
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-core</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-jms</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-jms</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-ejb</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-ejb</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-jdbc</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-jdbc</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-jca</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-servlet</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-servlet</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-tag</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-struts</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner-struts</artifactId>
<version>2.0.7-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
Expand All @@ -105,6 +104,10 @@
<groupId>jboss</groupId>
<artifactId>jboss-j2ee</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.rmi</groupId>
<artifactId>jboss-rmi-api_1.0_spec</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -154,7 +157,7 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release-module-exclusives</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected org.w3c.dom.Document getOutputAsW3CDocument()
/**
* Delegates to {@link HTMLOutputModule#getOutputAsJDOMDocument}
*/
protected org.jdom.Document getOutputAsJDOMDocument()
protected org.jdom2.Document getOutputAsJDOMDocument()
{
return getHTMLOutputModule().getOutputAsJDOMDocument();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.jdom.Element;
import org.jdom2.Element;
import org.junit.Before;
import org.junit.Test;

Expand Down
7 changes: 3 additions & 4 deletions mockrunner-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<parent>
<groupId>com.mockrunner</groupId>
<artifactId>mockrunner</artifactId>
<version>2.0.7-SNAPSHOT</version>
<relativePath>..</relativePath>
<version>2.0.8-SNAPSHOT</version>
</parent>

<artifactId>mockrunner-core</artifactId>
Expand All @@ -31,8 +30,8 @@

<!-- needed for XML Util -->
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
</dependency>

<!-- needed for StringUtil (Perl5Compiler) -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import junit.framework.TestCase;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom2.Document;
import org.jdom2.Element;

import com.mockrunner.util.web.XmlUtil;

Expand Down
20 changes: 10 additions & 10 deletions mockrunner-core/src/main/java/com/mockrunner/util/web/XmlUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import org.apache.xerces.parsers.DOMParser;
import org.cyberneko.html.HTMLConfiguration;
import org.jdom.Element;
import org.jdom.input.DOMBuilder;
import org.jdom.output.XMLOutputter;
import org.jdom2.Element;
import org.jdom2.input.DOMBuilder;
import org.jdom2.output.XMLOutputter;
import org.xml.sax.InputSource;

import com.mockrunner.base.NestedApplicationException;
Expand All @@ -34,10 +34,10 @@ public class XmlUtil
* </pre>
*
* the method returns the h1 tag as <code>Element</code>.
* @param document the <code>org.jdom.Document</code>
* @param document the <code>org.jdom2.Document</code>
* @return the body <code>Element</code>
*/
public static Element getBodyFragmentFromJDOMDocument(org.jdom.Document document)
public static Element getBodyFragmentFromJDOMDocument(org.jdom2.Document document)
{
Element element = document.getRootElement().getChild("BODY");
if(null == element)
Expand All @@ -57,17 +57,17 @@ public static Element getBodyFragmentFromJDOMDocument(org.jdom.Document document
* @return the body element
* @deprecated use {@link #getBodyFragmentFromJDOMDocument}
*/
public static Element getBodyFragmentJDOMDocument(org.jdom.Document document)
public static Element getBodyFragmentJDOMDocument(org.jdom2.Document document)
{
return getBodyFragmentFromJDOMDocument(document);
}

/**
* Returns the documents XML content as a string.
* @param document the <code>org.jdom.Document</code>
* @param document the <code>org.jdom2.Document</code>
* @return the output as string
*/
public static String createStringFromJDOMDocument(org.jdom.Document document)
public static String createStringFromJDOMDocument(org.jdom2.Document document)
{
try
{
Expand All @@ -83,9 +83,9 @@ public static String createStringFromJDOMDocument(org.jdom.Document document)
* Creates a JDOM <code>Document</code> from a specified
* W3C <code>Document</code>.
* @param document the <code>org.w3c.dom.Document</code>
* @return the <code>org.jdom.Document</code>
* @return the <code>org.jdom2.Document</code>
*/
public static org.jdom.Document createJDOMDocument(org.w3c.dom.Document document)
public static org.jdom2.Document createJDOMDocument(org.w3c.dom.Document document)
{
return new DOMBuilder().build(document);
}
Expand Down
Loading
Loading