Skip to content

Commit 2b212e1

Browse files
committed
Adapt unit test for v2
This adapts an expected error messages, which has changed in w3w REST API v2.
1 parent a15338e commit 2b212e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/de/meggsimum/w3w/What3WordsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testChangeLang() throws Exception {
9898
@Test
9999
public void testWhat3WordsException() throws Exception {
100100
expectedException.expect(Exception.class);
101-
expectedException.expectMessage("Error returned from w3w API: Missing or invalid key");
101+
expectedException.expectMessage("Authentication failed; invalid API key");
102102
What3Words w3w = new What3Words(UUID.randomUUID().toString() + apiKey);
103103
double[] coords = {49.422636, 8.320833};
104104
w3w.positionToWords(coords);

0 commit comments

Comments
 (0)