Ignore:
Timestamp:
2023-02-16T16:58:19+01:00 (23 months ago)
Author:
taylor.smock
Message:

See r18665, fix broken test and explain why the OAuth token consumer is never called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuth20AuthorizationTest.java

    r18665 r18666  
    33
    44import static org.junit.jupiter.api.Assertions.assertEquals;
    5 import static org.junit.jupiter.api.Assertions.assertFalse;
    65import static org.junit.jupiter.api.Assertions.assertNotNull;
     6import static org.junit.jupiter.api.Assertions.assertNull;
    77import static org.junit.jupiter.api.Assertions.assertTrue;
    88
     
    208208            client.disconnect();
    209209        }
    210         assertFalse(consumer.get().isPresent());
     210        assertNull(consumer.get(), "The OAuth consumer should not be called since the state does not match");
    211211    }
    212212}
Note: See TracChangeset for help on using the changeset viewer.