WUIC tests

Support for testing WUIC features

Лицензия

Лицензия

Группа

Группа

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

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

wuic-test
Последняя версия

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

0.5.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

WUIC tests
Support for testing WUIC features
Ссылка на сайт

Ссылка на сайт

http://wuic.github.io
Система контроля версий

Система контроля версий

http://github.com/wuic/wuic-test

Скачать wuic-test

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

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

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-simple jar 1.7.5
junit : junit jar 4.11
io.undertow : undertow-servlet jar 1.0.0.Final
io.undertow.jastow : jastow jar 1.0.0.Final
org.apache.httpcomponents : httpclient jar 4.3.4
org.mockito : mockito-core jar 1.9.5
org.eclipse.jdt.core.compiler : ecj jar 4.3.1
org.glassfish : javax.el jar 3.0-b01

provided (1)

Идентификатор библиотеки Тип Версия
javax.servlet.jsp : jsp-api jar 2.2

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

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

Web UI Compressor - tests support

This projects provides helpers based on JUnit to ease WUIC features test. Just add the following dependency:

<dependency>
    <groupId>com.github.wuic</groupId>
	<artifactId>wuic-test</artifactId>
	<version>${wuic.version}</version>
    <scope>test</scope>
</dependency>

Integration test

You can write an integration test that runs a webapp deployed in the undertow servlet container.

@RunWith(JUnit4.class)
@WuicRunnerConfiguration(webApplicationPath = "/myCustomPath")
public class ServletContainerTest {

    @ClassRule
    public static Server server = new Server();

    @Test
    public void basicHttpGetTest() throws IOException {
        // Assume you have an index.html page in your classpath that contains "Hello World" string
        final String content = IOUtils.readString(new InputStreamReader(server.get("/index.html").getEntity().getContent()));
        Assert.assertTrue(content, content.contains("Hello World"));
    }
}

See the own unit tests of the project to get full samples.

com.github.wuic

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

Версия
0.5.2
0.5.2.RC6
0.5.2.RC5
0.5.2.RC4
0.5.2.RC3
0.5.2.RC2
0.5.2.RC1
0.5.1
0.5.1.RC2
0.5.1.RC1
0.5.0
0.5.0.RC7
0.5.0.RC6
0.5.0.RC5
0.5.0.RC4
0.5.0.RC3
0.5.0.RC2
0.5.0.RC1