Verified Commit 6c93b569 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Fix tests and update gradle

parent df5cbf93
...@@ -8,7 +8,7 @@ buildscript { ...@@ -8,7 +8,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.3' classpath 'com.android.tools.build:gradle:4.0.1'
} }
} }
......
...@@ -20,6 +20,10 @@ class AudioPacketTest { ...@@ -20,6 +20,10 @@ class AudioPacketTest {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
override fun onMetaListPacket(base: BasePacket, packet: MetaListPacket) {
fail("Wrong packet decoded")
}
override fun onAudioPacket(base: BasePacket, packet: AudioPacket) { override fun onAudioPacket(base: BasePacket, packet: AudioPacket) {
val audioData = packet.audio val audioData = packet.audio
...@@ -46,6 +50,10 @@ class AudioPacketTest { ...@@ -46,6 +50,10 @@ class AudioPacketTest {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
override fun onMetaListPacket(base: BasePacket, packet: MetaListPacket) {
fail("Wrong packet decoded")
}
override fun onUnknownPacket(base: BasePacket) { override fun onUnknownPacket(base: BasePacket) {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
......
...@@ -25,6 +25,10 @@ class BasePacketTest { ...@@ -25,6 +25,10 @@ class BasePacketTest {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
override fun onMetaListPacket(base: BasePacket, packet: MetaListPacket) {
fail("Wrong packet decoded")
}
override fun onAudioPacket(base: BasePacket, packet: AudioPacket) { override fun onAudioPacket(base: BasePacket, packet: AudioPacket) {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
...@@ -46,6 +50,10 @@ class BasePacketTest { ...@@ -46,6 +50,10 @@ class BasePacketTest {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
override fun onMetaListPacket(base: BasePacket, packet: MetaListPacket) {
fail("Wrong packet decoded")
}
override fun onUnknownPacket(base: BasePacket) { override fun onUnknownPacket(base: BasePacket) {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
......
...@@ -20,6 +20,10 @@ class MetaPacketTest { ...@@ -20,6 +20,10 @@ class MetaPacketTest {
Assertions.assertEquals("Hello", packet.contents) Assertions.assertEquals("Hello", packet.contents)
} }
override fun onMetaListPacket(base: BasePacket, packet: MetaListPacket) {
fail("Wrong packet decoded")
}
override fun onAudioPacket(base: BasePacket, packet: AudioPacket) { override fun onAudioPacket(base: BasePacket, packet: AudioPacket) {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
...@@ -40,6 +44,10 @@ class MetaPacketTest { ...@@ -40,6 +44,10 @@ class MetaPacketTest {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
override fun onMetaListPacket(base: BasePacket, packet: MetaListPacket) {
fail("Wrong packet decoded")
}
override fun onUnknownPacket(base: BasePacket) { override fun onUnknownPacket(base: BasePacket) {
fail("Wrong packet decoded") fail("Wrong packet decoded")
} }
......
...@@ -16,7 +16,7 @@ buildscript { ...@@ -16,7 +16,7 @@ buildscript {
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.5.3' classpath 'com.android.tools.build:gradle:4.0.1'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
......
#Thu Sep 12 13:21:25 CEST 2019 #Tue Sep 08 23:44:40 CEST 2020
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment