forked from arquillian/arquillian-container-jetty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds new configuration parameters. Resolves issue arquillian#18.
- Loading branch information
Alex Soto
authored and
Alex Soto
committed
Aug 13, 2015
1 parent
8a51e82
commit 56c6a5a
Showing
11 changed files
with
320 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
*.ipr | ||
*.iws | ||
.idea | ||
.DS_Store | ||
|
||
# Maven | ||
target/ | ||
|
This file contains 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
8 changes: 8 additions & 0 deletions
8
...n/src/test/java/org/jboss/arquillian/container/jetty/DummyJettyEmbeddedConfiguration.java
This file contains 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,8 @@ | ||
package org.jboss.arquillian.container.jetty; | ||
|
||
public class DummyJettyEmbeddedConfiguration extends AbstractJettyEmbeddedConfiguration | ||
{ | ||
|
||
|
||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...on/src/test/java/org/jboss/arquillian/container/jetty/JettyEmbeddedConfigurationTest.java
This file contains 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,27 @@ | ||
package org.jboss.arquillian.container.jetty; | ||
|
||
|
||
import org.junit.Test; | ||
|
||
import java.util.Map; | ||
|
||
import static org.hamcrest.core.Is.is; | ||
import static org.junit.Assert.assertThat; | ||
|
||
public class JettyEmbeddedConfigurationTest { | ||
|
||
private static final String MIME_DEFINITIONS = "js application/javascript " + | ||
"txt text/plain " + | ||
"html text/html"; | ||
|
||
@Test | ||
public void shouldConfigureMimeTypes() { | ||
DummyJettyEmbeddedConfiguration dummyJettyEmbeddedConfiguration = new DummyJettyEmbeddedConfiguration(); | ||
dummyJettyEmbeddedConfiguration.setMimeTypes(MIME_DEFINITIONS); | ||
Map<String, String> mimeTypes = dummyJettyEmbeddedConfiguration.getMimeTypes(); | ||
assertThat(mimeTypes.get("js"), is("application/javascript")); | ||
assertThat(mimeTypes.get("txt"), is("text/plain")); | ||
assertThat(mimeTypes.get("html"), is("text/html")); | ||
} | ||
|
||
} |
This file contains 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 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
Oops, something went wrong.