-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleaned up test support packages and paramterized existing tests for …
…solana message encoding the tests are really slow, need to speed them up somehow - must look at the start-up script for the validator container and see if there's any configuration to tweak to move things along a bit
- Loading branch information
Showing
77 changed files
with
205 additions
and
164 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
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
12 changes: 0 additions & 12 deletions
12
src/integration-test/java/com/lmax/solana4j/programs/LegacyEncodingIntegrationTest.java
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/integration-test/java/com/lmax/solana4j/programs/V0EncodingIntegrationTest.java
This file was deleted.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
...m/lmax/solana4j/assertions/Assertion.java → ...om/lmax/solana4j/assertion/Assertion.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.assertions; | ||
package com.lmax.solana4j.assertion; | ||
|
||
public abstract class Assertion<T> | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...lana4j/assertions/IsEqualToAssertion.java → ...olana4j/assertion/IsEqualToAssertion.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
2 changes: 1 addition & 1 deletion
2
...lana4j/assertions/IsNotNullAssertion.java → ...olana4j/assertion/IsNotNullAssertion.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
4 changes: 2 additions & 2 deletions
4
...olana4j/programs/IntegrationTestBase.java → ...ax/solana4j/base/IntegrationTestBase.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
19 changes: 19 additions & 0 deletions
19
src/test-support/java/com/lmax/solana4j/base/MessageEncodingArgumentsParameter.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,19 @@ | ||
package com.lmax.solana4j.base; | ||
|
||
import org.junit.jupiter.api.extension.ExtensionContext; | ||
import org.junit.jupiter.params.provider.Arguments; | ||
import org.junit.jupiter.params.provider.ArgumentsProvider; | ||
|
||
import java.util.stream.Stream; | ||
|
||
public class MessageEncodingArgumentsParameter implements ArgumentsProvider | ||
{ | ||
@Override | ||
public Stream<? extends Arguments> provideArguments(final ExtensionContext context) | ||
{ | ||
return Stream.of( | ||
Arguments.of("V0"), | ||
Arguments.of("Legacy") | ||
); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/test-support/java/com/lmax/solana4j/base/ParameterizedMessageEncodingTest.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,17 @@ | ||
package com.lmax.solana4j.base; | ||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ArgumentsSource; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@ParameterizedTest(name = "{index}: (Message Encoding {0})") | ||
@ArgumentsSource(MessageEncodingArgumentsParameter.class) | ||
public @interface ParameterizedMessageEncodingTest | ||
{ | ||
} |
2 changes: 1 addition & 1 deletion
2
.../solana4j/testclient/api/AccountInfo.java → ...lmax/solana4j/client/api/AccountInfo.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...testclient/api/AccountInfoParsedData.java → ...a4j/client/api/AccountInfoParsedData.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.Map; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...x/solana4j/testclient/api/AccountKey.java → .../lmax/solana4j/client/api/AccountKey.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface AccountKey | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...4j/testclient/api/AddressTableLookup.java → ...lana4j/client/api/AddressTableLookup.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...olana4j/testclient/api/BlockResponse.java → ...ax/solana4j/client/api/BlockResponse.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ax/solana4j/testclient/api/Blockhash.java → ...m/lmax/solana4j/client/api/Blockhash.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface Blockhash | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...x/solana4j/testclient/api/Commitment.java → .../lmax/solana4j/client/api/Commitment.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public enum Commitment | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...lmax/solana4j/testclient/api/Context.java → ...com/lmax/solana4j/client/api/Context.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface Context | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...max/solana4j/testclient/api/Encoding.java → ...om/lmax/solana4j/client/api/Encoding.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public enum Encoding | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
.../lmax/solana4j/testclient/api/Header.java → .../com/lmax/solana4j/client/api/Header.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface Header | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...na4j/testclient/api/InnerInstruction.java → ...solana4j/client/api/InnerInstruction.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../solana4j/testclient/api/Instruction.java → ...lmax/solana4j/client/api/Instruction.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...lmax/solana4j/testclient/api/Message.java → ...com/lmax/solana4j/client/api/Message.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...estclient/api/ProgramAccountResponse.java → ...4j/client/api/ProgramAccountResponse.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
2 changes: 1 addition & 1 deletion
2
.../lmax/solana4j/testclient/api/Reward.java → .../com/lmax/solana4j/client/api/Reward.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface Reward | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...olana4j/testclient/api/SignatureInfo.java → ...ax/solana4j/client/api/SignatureInfo.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
2 changes: 1 addition & 1 deletion
2
...ana4j/testclient/api/SignatureStatus.java → .../solana4j/client/api/SignatureStatus.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
2 changes: 1 addition & 1 deletion
2
...ax/solana4j/testclient/api/SolanaApi.java → ...m/lmax/solana4j/client/api/SolanaApi.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface SolanaApi | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...a4j/testclient/api/SolanaRpcResponse.java → ...olana4j/client/api/SolanaRpcResponse.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
2 changes: 1 addition & 1 deletion
2
...solana4j/testclient/api/TokenAccount.java → ...max/solana4j/client/api/TokenAccount.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface TokenAccount | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
.../solana4j/testclient/api/TokenAmount.java → ...lmax/solana4j/client/api/TokenAmount.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface TokenAmount | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...solana4j/testclient/api/TokenBalance.java → ...max/solana4j/client/api/TokenBalance.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface TokenBalance | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
.../solana4j/testclient/api/Transaction.java → ...lmax/solana4j/client/api/Transaction.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
public interface Transaction | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...ana4j/testclient/api/TransactionData.java → .../solana4j/client/api/TransactionData.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...j/testclient/api/TransactionMetadata.java → ...ana4j/client/api/TransactionMetadata.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.lmax.solana4j.testclient.api; | ||
package com.lmax.solana4j.client.api; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...j/testclient/api/TransactionResponse.java → ...ana4j/client/api/TransactionResponse.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
Oops, something went wrong.