JspTest for JSP 2.0

JspTest variant suitable for testing JavaServer Pages that follow the JSP 2.0 specification.

Лицензия

Лицензия

Категории

Категории

Jakarta Server Pages Jakarta EE The Web Tier
Группа

Группа

com.github.lkoskela.jsptest
Идентификатор

Идентификатор

jsptest-jsp20
Последняя версия

Последняя версия

0.21
Дата

Дата

Тип

Тип

jar
Описание

Описание

JspTest for JSP 2.0
JspTest variant suitable for testing JavaServer Pages that follow the JSP 2.0 specification.
Организация-разработчик

Организация-разработчик

JspTest developers

Скачать jsptest-jsp20

Как подключить последнюю версию

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

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
com.github.lkoskela.jsptest : jsptest-framework jar 0.21
javax.servlet : jstl jar 1.1.2
taglibs : standard jar 1.1.2
tomcat : jasper-compiler jar 5.5.15
tomcat : jasper-runtime jar 5.5.15

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.21