Skip to content

Commit

Permalink
OLMIS-7989: Refactor currency unit in ProgramOrderableImportPersister…
Browse files Browse the repository at this point in the history
… to make it testable
  • Loading branch information
pwargulak committed Oct 17, 2024
1 parent ff14fcd commit 1b5565d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
@RunWith(MockitoJUnitRunner.class)
public class ProgramOrderableImportPersisterTest {

@Rule public EnvironmentVariables environmentVariables = new EnvironmentVariables();
@Rule
public EnvironmentVariables environmentVariables =
new EnvironmentVariables().set("CURRENCY_CODE", "USD");

private InputStream dataStream;

@Mock private FileHelper fileHelper;
Expand All @@ -69,8 +72,6 @@ public class ProgramOrderableImportPersisterTest {

@Before
public void setUp() {
environmentVariables.set("CURRENCY_CODE", "USD");

ReflectionTestUtils.setField(
programOrderableImportPersister,
"importExecutorService",
Expand Down

0 comments on commit 1b5565d

Please sign in to comment.