Skip to content

Commit f07cc74

Browse files
committed
Upgrade Jersey, Javassist and Coffig
1 parent ea9706a commit f07cc74

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# Version 3.12.0 (2021-01-31)
1+
# Version 3.12.0 (2021-05-06)
22

33
* [new] Java 15 support
44
* [new] The `check` tool analyzes and show discrepancies between configuration files (actual config) and configuration objects (expected config).
55
* [chg] Move main entrypoint logic from `SeedMain.main()` to `Seed.launch()`, allowing custom main methods in addition to the built-in `SeedMain`.
66
* [chg] Upgrade Shiro to 1.7.1 (fixes CVE-2020-11989, CVE-2020-17510, CVE-2020-1957, CVE-2020-13933 and CVE-2019-12422).
77
* [chg] Upgrade Guice to 5.0.1
8-
* [chg] Update pom parent to 4.0.0 (deploy/release directly to Sonatype).
8+
* [chg] Upgrade Jersey to 2.34
9+
* [chg] Upgrade Javassist to 3.27.0-GA
10+
* [chg] Upgrade Guava to 30.1.1-jre
11+
* [chg] Upgrade Coffig to 3.1.7
912
* [fix] Detection of color output under recent versions of IntelliJ.
1013
* [fix] Fix configuration evaluation (macros, functions, ...) in `classes` section (see https://github.com/seedstack/seed/issues/283).
1114

pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.seedstack.poms</groupId>
1616
<artifactId>parent-internal</artifactId>
17-
<version>4.0.0-SNAPSHOT</version>
17+
<version>4.0.1</version>
1818
</parent>
1919

2020
<groupId>org.seedstack.seed</groupId>
@@ -24,22 +24,21 @@
2424

2525
<properties>
2626
<nuun-kernel.version>1.0.M11</nuun-kernel.version>
27-
<javassist.version>3.24.1-GA</javassist.version>
27+
<javassist.version>3.27.0-GA</javassist.version>
2828
<shed.version>1.1.6</shed.version>
29-
<coffig.version>3.1.7-SNAPSHOT</coffig.version>
29+
<coffig.version>3.1.7</coffig.version>
3030
<commons-cli.version>1.4</commons-cli.version>
3131
<guice.version>5.0.1</guice.version>
3232
<guava.version>30.1.1-jre</guava.version>
3333
<typetools.version>0.5.0</typetools.version>
3434
<shiro.version>1.7.1</shiro.version>
3535
<undertow.version>2.1.3.Final</undertow.version>
36-
<jersey2.version>2.31</jersey2.version>
36+
<jersey2.version>2.34</jersey2.version>
3737
<hibernate-validator.version>6.1.5.Final</hibernate-validator.version>
3838
<aopalliance.version>1.0</aopalliance.version>
3939
<glassfish-javax.el.version>3.0.0</glassfish-javax.el.version>
4040
<arquillian.version>1.4.0.Final</arquillian.version>
4141
<tomcat.version>7.0.86</tomcat.version>
42-
<kubernetes-annotations.version>1.0.3</kubernetes-annotations.version>
4342

4443
<compatibility.version>3.1.0</compatibility.version>
4544

rest/jersey2/src/test/java/org/seedstack/seed/rest/jersey2/internal/GuiceComponentProviderTest.java

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,28 @@
77
*/
88
package org.seedstack.seed.rest.jersey2.internal;
99

10-
import static org.assertj.core.api.Assertions.assertThat;
11-
import static org.junit.Assert.fail;
12-
1310
import com.google.common.collect.Sets;
1411
import com.google.inject.Injector;
1512
import io.nuun.kernel.api.annotations.Ignore;
16-
import javax.servlet.ServletContext;
17-
import javax.ws.rs.Path;
18-
import javax.ws.rs.ext.Provider;
19-
import mockit.Deencapsulation;
20-
import mockit.Expectations;
21-
import mockit.Mock;
22-
import mockit.MockUp;
23-
import mockit.Mocked;
24-
import mockit.Tested;
25-
import mockit.Verifications;
13+
import mockit.*;
2614
import org.glassfish.hk2.api.DynamicConfiguration;
2715
import org.glassfish.hk2.api.Factory;
2816
import org.glassfish.hk2.api.ServiceLocator;
2917
import org.glassfish.hk2.utilities.binding.BindingBuilder;
3018
import org.glassfish.hk2.utilities.binding.ServiceBindingBuilder;
19+
import org.glassfish.jersey.model.ContractProvider;
3120
import org.junit.Test;
3221
import org.jvnet.hk2.guice.bridge.api.GuiceBridge;
3322
import org.jvnet.hk2.guice.bridge.api.GuiceIntoHK2Bridge;
3423
import org.seedstack.seed.SeedException;
3524

25+
import javax.servlet.ServletContext;
26+
import javax.ws.rs.Path;
27+
import javax.ws.rs.ext.Provider;
28+
29+
import static org.assertj.core.api.Assertions.assertThat;
30+
import static org.junit.Assert.fail;
31+
3632
public class GuiceComponentProviderTest {
3733
@Tested
3834
private GuiceComponentProvider underTest;
@@ -135,7 +131,7 @@ public void testPrepareHK2Bridge(@Mocked final GuiceBridge guiceBridge) {
135131

136132
@Test
137133
public void testDoNotBindNonResourceClasses() {
138-
boolean isBound = underTest.bind(String.class, null);
134+
boolean isBound = underTest.bind(String.class, (ContractProvider) null);
139135
assertThat(isBound).isFalse();
140136
}
141137

@@ -150,7 +146,7 @@ public <T> void testBindResourceClasses(@Mocked ServiceBindingBuilder<T> binding
150146
class MyResource {
151147
}
152148

153-
assertThat(underTest.bind(MyResource.class, null)).isTrue();
149+
assertThat(underTest.bind(MyResource.class, (ContractProvider) null)).isTrue();
154150
}
155151

156152
@Test

0 commit comments

Comments
 (0)