042c1e88aa
fix junit deprecations, issue #339
2022-01-31 11:39:57 +00:00
6a18bf086f
Util: Fix net.i2p.util.Addresses::getIP empty string
...
The standard library behavior is to return the localhost when null or an empty string is passed.
getIP seeked to override that behavior, but didn't treat the empty string case.
Test parts of net.i2p.util.Addresses
2021-01-29 12:45:59 +00:00
5e5886395c
Tests: Add mockito classpath to core tests
...
javadocs for new test classes
2021-01-23 09:47:22 -05:00
79a868b8fe
Use TestContext to replace existing I2PAppContext
...
This allows us to mock parts of the I2PAppContext as we like.
The mocking is done when `testContext` is created in the constructor,
which replaces the existing global context.
2021-01-23 14:17:27 +00:00
169fb59d7d
test: fix I2PSocketExceptionTest::testUnknownStatus
...
In non-English environments, the message is translated.
2021-01-20 14:38:37 +00:00
6887c7edae
I2CP: Don't have I2CP Messages extend DataStructureImpl, to save space
...
Ditto MessageId and SessionId.
Fixup unit tests as required
2020-11-11 13:09:42 +00:00
5bafdd05a9
Tunnels: Simplify TunnelId and HopConfig to save space
...
and reduce object churn and duplication
Fixup tests, javadocs, logging as required
2020-11-07 13:40:48 +00:00
0a34f3d5dd
Tests: Drop empty unit test files
2020-01-03 12:12:05 +00:00
cff2ae3ac9
Hotfix change to make 0.9.42 build on Mac OSX without disabling javadoc. (Since maven builds are built on OSX it's something that really should work fine)
2019-08-28 08:38:06 +00:00
459eb7fdcd
Tests: Unify core test resources across JUnit and ScalaTest
...
Fixes a test failure running the ScalaTests under Ant
2019-08-10 17:19:21 +00:00
f32c863ba8
Tests: Temporarily mitigate discrepancy between Ant and Gradle in SingleFileNamingServiceTest
2019-08-10 16:48:21 +00:00
ee84e7e3e1
Tests: Fix compilation bug after SSU HMAC implementation move
2019-08-10 16:46:41 +00:00
13190931b9
EdDSA: Reduce diff between vendored code and upstream
...
Includes missing license information.
2019-08-10 15:39:41 +00:00
6adc665fd3
Build: Move SSU HMAC implementation from core to router
2019-07-12 18:40:46 +00:00
d6e350184c
Test: Move ElGamalTest from core to router to follow tested class
2018-11-23 14:22:08 +00:00
524c375944
Data: Drop long-deprecated and unused boolean methods and related tests
2018-10-08 12:43:58 +00:00
5b114f4bf3
Removing files temporarily to allow for propagation from i2p.i2p branch
2018-08-17 08:37:03 +00:00
2800791f00
Test: Backport EdDSA junit changes from github; fixes NPE in 2 tests
2018-07-20 15:25:15 +00:00
eff0cac30b
EdDSA: Backport versions 0.2/0.3 from github:
...
- Change key encoding to match curdle draft
- Support key decoding based on curdle draft
- Implement true constant-time cmov()
- Add handling of X509Key-wrapped EdDSA keys (GitHub PR #47 )
- Clarify that KeyPairGenerator takes a key size, not strength
- Javadocs
GitHub PR #58 :
- Make GroupElement immutable by moving the pre-computed logic to the constructors,
allowing the synchronized checking of whether the pre-computed logic had executed or not
to be removed since it always has when it is used because those code paths
are modified to request it at construction time.
- This allows getNegativeA() to be lazy, and doesn't need volatile due to the immutability
(and final fields - this is important part of the contract with the JVM memory model).
- Remove synchronized contention from the named curve table get method.
- Generally remove use of the named curve table get method with a constant curve name
in hot code paths in favour of using a new static constant for the curve spec.
Overall performance changes:
- Keygen 46% faster
- Signing 39% slower (due to cmov)
- Verify 2% faster
2018-07-01 11:10:06 +00:00
e8ac24bedd
Added some missing files from earlier commits caused by -R stuff in mtn.
2018-04-22 23:48:44 +00:00
d4bafaeee8
Don't check error messages for JRE-generated errors
...
They may change across Java versions.
2017-12-05 20:33:12 +00:00
89d7a594dd
fix test on Java 9
2017-12-02 23:25:43 +00:00
b6298dc091
Segment integration tests in core
2017-12-02 19:35:33 +00:00
11da21dd67
Remove AESInputStreamTest reference
2017-12-02 19:33:05 +00:00
a574fcb68d
Drop historic unused AESInputStream and AESOutputStream
2017-12-02 19:29:36 +00:00
0f757489ff
Migrate DummyNamingServiceTest to JUnit 4, comment out tests requiring a router
2017-12-02 18:22:59 +00:00
b8eeb72044
Fix net.i2p.data.*Key tests, remove dead code
...
Broken in 463f5347b682f23a159bdeb06ffc8f55c5c2cff7 by an underlying API change.
The dead code threw the previously-expected exception.
2017-12-02 17:42:59 +00:00
60efd0b426
Migrate net.i2p.data tests to JUnit 4
2017-12-02 17:25:09 +00:00
2e888501d6
Core tests: Remove or suppress deprecation warnings
...
Remove unchecked warnings
Fix HMACSHA256Test and HMACSHA256Bench?
2017-12-02 14:28:03 +00:00
40642c805c
Remove old benchmarks
2017-08-26 20:46:33 +00:00
b0514cc564
move BFNS test
2017-05-05 13:38:59 +00:00
91007735a1
Update tests to use ScalaTest 3.0.1
2016-12-29 18:54:23 +00:00
082a5d3c0f
move siphash test from util to crypto
2016-10-21 15:21:24 +00:00
cee3ebbb23
less wtf
2016-10-21 15:20:35 +00:00
7ccca9ef3c
EdDSAEngine: one-shot mode tests
2016-02-28 04:18:04 +00:00
6e7f015d4b
Add tests to check that an EdDSAEngine object can be reused with the same key
2016-02-28 03:37:03 +00:00
cdfd4ca2f4
Move CachedIteratorArrayList from core to router
2016-01-14 13:54:53 +00:00
c60f3970d1
Replaces instances of getBytes() in core classes
2015-12-20 01:18:38 +00:00
44bd14bd4d
propagate from branch 'i2p.i2p' (head 3a8ae6268555bd2c5d1519c48497677f74e34a76)
...
to branch 'i2p.i2p.unittests' (head 752d5d999986d2a552e695592c82fa659c1f889c)
2015-07-25 10:01:18 +00:00
9af197e590
Add KeyCert test that fails
2015-07-21 01:19:23 +00:00
98a4460bde
fix test compile
2015-07-02 15:20:58 +00:00
ba34c90b7f
EdDSA cleanup, another null resource check
2014-12-13 20:56:49 +00:00
7f72830ec8
JavaDoc fixes
2014-11-14 22:00:51 +00:00
2caaad95ec
Comment out not yet implemented tests
2014-11-14 21:52:47 +00:00
09b995aca6
BigIntegerFieldElement.isNonZero() tests
2014-11-14 21:51:53 +00:00
a0bf8433e4
Tests: copy the EdDSA test.data file to where the classloader can find it
2014-11-14 21:16:28 +00:00
9104bd7304
Tests: Copy the new EdDSA test vectors
...
to where the classloader can find them.
Throw a better error message if not found.
2014-11-14 16:44:04 +00:00
fd7e549915
Added EdDSA tests
...
Source:
https://github.com/str4d/ed25519-java
Git commit:
58e4efadf972f4dc4f67c05152f82b49fb22bac6
2014-11-12 10:21:46 +00:00
36fdb4ee2f
Fix junit compile fails due to data structure moves
2014-09-23 14:15:27 +00:00
a63bfeaeec
fix SKM test broken by TSKM move
2014-08-10 15:48:18 +00:00