Skip to content

Commit

Permalink
changed method name, added small documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MOOOOOSER committed Nov 20, 2023
1 parent e872554 commit f758116
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/test/kotlin/sirius/biz/storage/s3/ObjectStoresTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ import sirius.kernel.di.std.Part
import java.io.File
import java.io.FileOutputStream
import java.net.URL
import java.nio.file.Files as files_;
import java.nio.file.Files as files_
import java.nio.charset.StandardCharsets
import kotlin.test.assertEquals
import kotlin.test.assertFalse

/**
* Tests the [ObjectStores].
*/
@ExtendWith(SiriusExtension::class)
class ObjectStoresTest {

@Test
fun `createBucketWorks`() {
fun `create bucket works`() {
val file = File.createTempFile("test", "")
val fout = FileOutputStream(file)
repeat(10024) {
Expand Down Expand Up @@ -67,7 +69,7 @@ class ObjectStoresTest {
}

@Test
fun `ensureBucketExists`() {
fun `ensure bucket exists`() {
stores.store().ensureBucketExists(stores.store().getBucketName("exists"))
stores.store().doesBucketExist(stores.store().getBucketName("exists"))
stores.bucketCache.get(
Expand All @@ -88,7 +90,7 @@ class ObjectStoresTest {
}

@Test
fun `deleteBucket`() {
fun `delete Bucket works`() {
stores.store().ensureBucketExists(stores.store().getBucketName("deleted"))
stores.store().doesBucketExist(stores.store().getBucketName("deleted"))
stores.store().deleteBucket(stores.store().getBucketName("deleted"))
Expand Down

0 comments on commit f758116

Please sign in to comment.