1 package net.pterodactylus.sone.freenet
4 import org.hamcrest.MatcherAssert.*
5 import org.hamcrest.Matchers.*
11 class FreenetURIsTest {
13 private val uri = FreenetURI("SSK@$routingKey,$cryptoKey,$extra/some-site-12/foo/bar.html")
16 fun routingKeyIsExtractCorrectly() {
17 assertThat(uri.routingKeyString, equalTo(routingKey))
22 private const val routingKey = "NfUYvxDwU9vqb2mh-qdT~DYJ6U0XNbxMGGoLe0aCHJs"
23 private const val cryptoKey = "Miglsgix0VR56ZiPl4NgjnUd~UdrnHqIvXJ3KKHmxmI"
24 private const val extra = "AQACAAE"