Skip to content

Releases: launchdarkly/java-test-helpers

2.0.2

27 Jun 14:40
Compare
Choose a tag to compare

[2.0.2] - 2023-06-27

Changed:

  • Bumping Guava version to incorporate CVE fixes.

2.0.1

18 Dec 20:11
Compare
Choose a tag to compare

[2.0.1] - 2022-12-18

(This release replaces the broken 2.0.0 release, which was accidentally duplicated from 1.3.0.)

This release improves compatibility of the library with Android code by removing usage of Java 8 APIs that are not supported in Android. It also revises the embedded HTTP mechanism to use a fork of nanohttpd rather than the heavier-weight Jetty.

Changed:

  • All methods that took a java.time.Duration now take long, TimeUnit instead.
  • The HttpServer class is now based on a fork of the lightweight nanohttpd (https://github.com/launchdarkly-labs/nanohttpd) library. This should work correctly in any server-side Java environment; it has not been validated in Android, but the previous Jetty implementation did not work in Android anyway.

2.0.0

17 Nov 21:36
Compare
Choose a tag to compare

[2.0.0] - 2022-11-17

This release improves compatibility of the library with Android code by removing usage of Java 8 APIs that are not supported in Android. It also revises the embedded HTTP mechanism to use a fork of nanohttpd rather than the heavier-weight Jetty.

Changed:

  • All methods that took a java.time.Duration now take long, TimeUnit instead.
  • The HttpServer class is now based on a fork of the lightweight nanohttpd (https://github.com/launchdarkly-labs/nanohttpd) library. This should work correctly in any server-side Java environment; it has not been validated in Android, but the previous Jetty implementation did not work in Android anyway.

1.3.0

30 Aug 01:08
Compare
Choose a tag to compare

[1.3.0] - 2022-08-29

Added:

  • com.launchdarkly.testhelpers.tcptest: this package is analogous to httptest but much simpler, providing a basic TCP listener that can be configured with behaviors like "close connections without sending a response" or "forward the connection to another port".
  • com.launchdarkly.testhelpers.httptest.SpecialHttpConfigurations: test helpers to validate several standard kinds of HTTP client configurations.

1.2.0

08 Jul 18:33
Compare
Choose a tag to compare

[1.2.0] - 2022-07-08

Added:

  • TypeBehavior.singletonValueFactory is a new method that can be used with TypeBehavior.checkEqualsAndHashCode to allow testing of types that have interned/singleton values.

1.1.1

17 Jun 21:11
Compare
Choose a tag to compare

[1.1.1] - 2022-06-17

Fixed:

  • Fixed Hamcrest dependency to use hamcrest-library rather than hamcrest-all, because JUnit (which is commonly used in any unit test code that would also use Hamcrest) has a transitive dependency on hamcrest-library and using both would result in duplication on the classpath.

1.1.0

21 Jul 19:17
Compare
Choose a tag to compare

[1.1.0] - 2021-07-21

Added:

  • Assertions, ConcurrentHelpers, JsonAssertions, TempDir, TempFile, TypeBehavior.

1.0.0

26 Jun 00:13
Compare
Choose a tag to compare

[1.0.0] - 2021-06-25

Initial release.