Skip to content
This repository was archived by the owner on Nov 22, 2020. It is now read-only.

Commit 92448d9

Browse files
committed
continued: Require namespace on all method calls
Signed-off-by: wslulciuc <[email protected]>
1 parent 429d944 commit 92448d9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/test/java/marquez/client/MarquezClientTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public class MarquezClientTest {
203203
private static final Instant ENDED_AT = START_AT.plusMillis(1000L);
204204
private static final long DURATION = START_AT.until(ENDED_AT, MILLIS);
205205
private static final Map<String, String> RUN_ARGS = newRunArgs();
206-
private static final Run RUN =
206+
private static final Run NEW =
207207
new Run(
208208
newRunId(),
209209
CREATED_AT,
@@ -419,7 +419,7 @@ public void testModifiedDbTable() throws Exception {
419419
.fields(FIELDS)
420420
.tags(TAGS)
421421
.description(dataset.getDescription().get())
422-
.runId(RUN.getId())
422+
.runId(NEW.getId())
423423
.build();
424424

425425
final Instant beforeModified = Instant.now();
@@ -493,7 +493,7 @@ public void testModifiedStream() throws Exception {
493493
.tags(TAGS)
494494
.description(dataset.getDescription().get())
495495
.schemaLocation(dataset.getSchemaLocation().get())
496-
.runId(RUN.getId())
496+
.runId(NEW.getId())
497497
.build();
498498

499499
final Instant beforeModified = Instant.now();
@@ -559,25 +559,25 @@ public void testCreateRun() throws Exception {
559559
.args(RUN_ARGS)
560560
.build();
561561
final String metaAsJson = JsonGenerator.newJsonFor(meta);
562-
final String runAsJson = JsonGenerator.newJsonFor(RUN);
562+
final String runAsJson = JsonGenerator.newJsonFor(NEW);
563563
when(http.post(url, metaAsJson)).thenReturn(runAsJson);
564564

565565
final Run run = client.createRun(NAMESPACE_NAME, JOB_NAME, meta);
566-
assertThat(run).isEqualTo(RUN);
566+
assertThat(run).isEqualTo(NEW);
567567
}
568568

569569
@Test
570570
public void testGetRun() throws Exception {
571571
final String pathTemplate = "/jobs/runs/%s";
572-
final String path = buildPathFor(pathTemplate, RUN.getId());
572+
final String path = buildPathFor(pathTemplate, NEW.getId());
573573
final URL url = buildUrlFor(path);
574-
when(http.url(pathTemplate, RUN.getId())).thenReturn(url);
574+
when(http.url(pathTemplate, NEW.getId())).thenReturn(url);
575575

576-
final String runAsJson = JsonGenerator.newJsonFor(RUN);
576+
final String runAsJson = JsonGenerator.newJsonFor(NEW);
577577
when(http.get(url)).thenReturn(runAsJson);
578578

579-
final Run run = client.getRun(RUN.getId());
580-
assertThat(run).isEqualTo(RUN);
579+
final Run run = client.getRun(NEW.getId());
580+
assertThat(run).isEqualTo(NEW);
581581
}
582582

583583
@Test

0 commit comments

Comments
 (0)