Repository: tomee
Updated Branches:
  refs/heads/master 12c428158 -> 3eb2687b9


TOMEE-2175 Adjust compression setting on test


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/3eb2687b
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/3eb2687b
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/3eb2687b

Branch: refs/heads/master
Commit: 3eb2687b9705d43a99f30c81f45b4ed127b4bf33
Parents: 12c4281
Author: Jonathan Gallimore <j...@jrg.me.uk>
Authored: Fri Mar 2 10:01:37 2018 +0000
Committer: Jonathan Gallimore <j...@jrg.me.uk>
Committed: Fri Mar 2 10:01:37 2018 +0000

----------------------------------------------------------------------
 .../test/java/org/apache/tomee/embedded/ConnectorConfigTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/3eb2687b/tomee/tomee-embedded/src/test/java/org/apache/tomee/embedded/ConnectorConfigTest.java
----------------------------------------------------------------------
diff --git 
a/tomee/tomee-embedded/src/test/java/org/apache/tomee/embedded/ConnectorConfigTest.java
 
b/tomee/tomee-embedded/src/test/java/org/apache/tomee/embedded/ConnectorConfigTest.java
index 6b2dfb9..3a38107 100644
--- 
a/tomee/tomee-embedded/src/test/java/org/apache/tomee/embedded/ConnectorConfigTest.java
+++ 
b/tomee/tomee-embedded/src/test/java/org/apache/tomee/embedded/ConnectorConfigTest.java
@@ -34,7 +34,7 @@ public class ConnectorConfigTest {
         try {
             new Container(new Configuration()
                     .property("connector.xpoweredBy", "true")
-                    .property("connector.attributes.compression", "true")
+                    .property("connector.attributes.compression", "on")
                     .property("connector.attributes.maxHeaderCount", "2016")) {
 
                 @Override
@@ -52,7 +52,7 @@ public class ConnectorConfigTest {
             assertNotNull(c);
             assertTrue(c.getXpoweredBy());
             assertEquals(2016, 
AbstractHttp11Protocol.class.cast(c.getProtocolHandler()).getMaxHeaderCount());
-            assertEquals("true", 
AbstractHttp11Protocol.class.cast(c.getProtocolHandler()).getCompression());
+            assertEquals("on", 
AbstractHttp11Protocol.class.cast(c.getProtocolHandler()).getCompression());
         }
     }
 }

Reply via email to