/*
- * Sone - DefaultIdentityTest.java - Copyright © 2013–2019 David Roden
+ * Sone - DefaultIdentityTest.kt - Copyright © 2013–2020 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@Test
fun `contexts are set correctly in bulk`() {
identity.addContext("Test")
- identity.setContexts(listOf("Test1", "Test2"))
+ identity.contexts = setOf("Test1", "Test2")
assertThat(identity.contexts, containsInAnyOrder("Test1", "Test2"))
assertThat(identity.hasContext("Test"), equalTo(false))
assertThat(identity.hasContext("Test1"), equalTo(true))