Skip to content

Commit

Permalink
Setup Product fixture per test
Browse files Browse the repository at this point in the history
  • Loading branch information
adambollen committed Dec 17, 2024
1 parent 5153c84 commit df5d225
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/com/fauna/e2e/E2EFeedsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.fauna.response.QuerySuccess;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;
Expand Down Expand Up @@ -47,6 +48,10 @@ public static void setup() {
FaunaConfig config =
FaunaConfig.builder().endpoint(LOCAL).secret("secret").build();
client = Fauna.client(config);
}

@BeforeEach
public void setupEach() {
productCollectionTs = Fixtures.ProductCollection(client);
}

Expand Down

0 comments on commit df5d225

Please sign in to comment.