JspTest root project for the generic components

This POM acts as a virtual root for the set of generic components that make up JspTest.

License

License

Categories

Categories

Jakarta Server Pages Jakarta EE The Web Tier
GroupId

GroupId

com.github.lkoskela.jsptest
ArtifactId

ArtifactId

jsptest-generic
Last Version

Last Version

0.21
Release Date

Release Date

Type

Type

pom
Description

Description

JspTest root project for the generic components
This POM acts as a virtual root for the set of generic components that make up JspTest.
Project Organization

Project Organization

JspTest developers

Download jsptest-generic

Filename Size
jsptest-generic-0.21.pom 1 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.lkoskela.jsptest/jsptest-generic/ -->
<dependency>
    <groupId>com.github.lkoskela.jsptest</groupId>
    <artifactId>jsptest-generic</artifactId>
    <version>0.21</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.lkoskela.jsptest/jsptest-generic/
implementation 'com.github.lkoskela.jsptest:jsptest-generic:0.21'
// https://jarcasting.com/artifacts/com.github.lkoskela.jsptest/jsptest-generic/
implementation ("com.github.lkoskela.jsptest:jsptest-generic:0.21")
'com.github.lkoskela.jsptest:jsptest-generic:pom:0.21'
<dependency org="com.github.lkoskela.jsptest" name="jsptest-generic" rev="0.21">
  <artifact name="jsptest-generic" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.lkoskela.jsptest', module='jsptest-generic', version='0.21')
)
libraryDependencies += "com.github.lkoskela.jsptest" % "jsptest-generic" % "0.21"
[com.github.lkoskela.jsptest/jsptest-generic "0.21"]

Dependencies

compile (4)

Group / Artifact Type Version
org.hibernate : jtidy jar r8-20060801
junit : junit jar 3.8.2
log4j : log4j jar 1.2.13
jaxen : jaxen jar 1.1.1

Project Modules

  • jsptest-common
  • jsptest-compiler-api
  • jsptest-framework

JspTest

JspTest is a JUnit 3 extension for testing JavaServer Pages (JSP) outside a J2EE container. Internally, it uses the Jasper JSP compiler from the Jakarta Tomcat project and the Java compiler distributed as part of the system's default JDK.

In short, JspTest lets you write unit tests like this:

public class BasicJspTest extends HtmlTestCase {

    protected String getWebRoot() {
        return "src/test/resources/websrc";
    }

    public void testRenderingTrivialJsp() throws Exception {
        get("/index.jsp");
        output().shouldContain("Hello from Jasper");
    }
}

JspTest is hosted at GitHub and is being distributed through the official Maven repository. The easiest way to get it into use (provided that you're using Maven) is to add the following dependency to your POM file:

<dependency>
  <groupId>net.sf.jsptest</groupId>
  <artifactId>jsptest-jsp20</artifactId>
  <version>VERSION</version>
</dependency>

...where VERSION should be replaced by whatever is the latest version number available in the central Maven repository.

There's a full example of a POM file for a Maven project over here.

If you don't use Maven, you could consider Ivy or Buildr, or you could just download the .jar files manually from the Maven repository.

Versions

Version
0.21