Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Oct 31, 2023
1 parent ce43fa4 commit ad98772
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 62 deletions.
19 changes: 0 additions & 19 deletions src/main/kotlin/de/cyface/uploader/HttpConnection.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,13 @@
package de.cyface.uploader

import de.cyface.uploader.DefaultUploader.Companion.DEFAULT_CHARSET
import de.cyface.uploader.exception.AccountNotActivated
import de.cyface.uploader.exception.BadRequestException
import de.cyface.uploader.exception.ConflictException
import de.cyface.uploader.exception.EntityNotParsableException
import de.cyface.uploader.exception.ForbiddenException
import de.cyface.uploader.exception.HostUnresolvable
import de.cyface.uploader.exception.InternalServerErrorException
import de.cyface.uploader.exception.NetworkUnavailableException
import de.cyface.uploader.exception.ServerUnavailableException
import de.cyface.uploader.exception.SynchronisationException
import de.cyface.uploader.exception.TooManyRequestsException
import de.cyface.uploader.exception.UnauthorizedException
import de.cyface.uploader.exception.UnexpectedResponseCode
import de.cyface.uploader.exception.UploadSessionExpired
import org.slf4j.LoggerFactory
import java.io.BufferedOutputStream
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.io.InterruptedIOException
import java.net.HttpURLConnection
import java.net.ProtocolException
import java.net.URL
import java.util.zip.GZIPOutputStream
import javax.net.ssl.HostnameVerifier
import javax.net.ssl.HttpsURLConnection
import javax.net.ssl.SSLException
import javax.net.ssl.SSLSession

/**
Expand Down
10 changes: 9 additions & 1 deletion src/test/kotlin/de/cyface/uploader/DefaultUploaderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class DefaultUploaderTest {
startLocation,
endLocation,
Modality.BICYCLE.databaseIdentifier,
3
3,
0,
0,
0,
0
)

// Act
Expand All @@ -76,6 +80,10 @@ class DefaultUploaderTest {
expected["locationCount"] = "5"
expected["modality"] = "BICYCLE"
expected["formatVersion"] = "3"
expected["logCount"] = "0"
expected["imageCount"] = "0"
expected["videoCount"] = "0"
expected["filesSize"] = "0"
assertThat(result, equalTo(expected))
}
}
42 changes: 0 additions & 42 deletions src/test/kotlin/de/cyface/uploader/HttpConnectionTest.kt

This file was deleted.

0 comments on commit ad98772

Please sign in to comment.