Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 7a0e57b

Browse files
author
Abhijit Sarkar
committed
Rename package
1 parent 1dd41c3 commit 7a0e57b

File tree

10 files changed

+32
-11
lines changed

10 files changed

+32
-11
lines changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ publishing {
121121
}
122122

123123
val bintrayRepo: String by project
124+
val projectLabels: String by project
124125
bintray {
125126
user = (findProperty("bintrayUser") ?: System.getenv("BINTRAY_USER"))?.toString()
126127
key = (findProperty("bintrayKey") ?: System.getenv("BINTRAY_KEY"))?.toString()
@@ -131,7 +132,7 @@ bintray {
131132
desc = project.description
132133
websiteUrl = "https://$gitHubUrl"
133134
vcsUrl = "https://$gitHubUrl.git"
134-
setLabels("spring", "spring-boot", "cassandra", "cassandra-unit", "test", "integration-test")
135+
setLabels(*projectLabels.split(",".toRegex()).map { it.trim() }.toTypedArray())
135136
setLicenses(licenseName)
136137
with(version) {
137138
name = project.version.toString()

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ ktlintVersion=9.4.0
1010
bintrayPluginVersion=1.8.5
1111

1212
projectGroup=com.asarkar.spring
13-
projectVersion=1.0.7
13+
projectVersion=2.0.0
1414
projectDescription=Starts the Cassandra server and makes the ports available as Spring Boot environment properties
15+
projectLabels=spring, spring-boot, cassandra, cassandra-unit, test, integration-test
1516
licenseName=Apache-2.0
1617
licenseUrl=http://www.apache.org/licenses/LICENSE-2.0.txt
1718
developerName=Abhijit Sarkar

src/main/kotlin/com/asarkar/spring/test/AutoConfigureCassandraUnit.kt renamed to src/main/kotlin/com/asarkar/spring/test/cassandra/AutoConfigureCassandraUnit.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.asarkar.spring.test
1+
package com.asarkar.spring.test.cassandra
22

33
import org.cassandraunit.utils.EmbeddedCassandraServerHelper
44
import org.junit.jupiter.api.Tag

src/main/kotlin/com/asarkar/spring/test/CassandraUnit.kt renamed to src/main/kotlin/com/asarkar/spring/test/cassandra/CassandraUnit.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.asarkar.spring.test
1+
package com.asarkar.spring.test.cassandra
22

33
import org.cassandraunit.utils.EmbeddedCassandraServerHelper
44
import org.springframework.util.ReflectionUtils

src/main/kotlin/com/asarkar/spring/test/CassandraUnitApplicationListener.kt renamed to src/main/kotlin/com/asarkar/spring/test/cassandra/CassandraUnitApplicationListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.asarkar.spring.test
1+
package com.asarkar.spring.test.cassandra
22

33
import org.cassandraunit.utils.EmbeddedCassandraServerHelper
44
import org.slf4j.LoggerFactory
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
org.springframework.context.ApplicationListener=\
2-
com.asarkar.spring.test.CassandraUnitApplicationListener
2+
com.asarkar.spring.test.cassandra.CassandraUnitApplicationListener

src/test/kotlin/com/asarkar/spring/cassandra/AutoConfigureWithKnownPortsTest.kt renamed to src/test/kotlin/com/asarkar/spring/test/cassandra/AutoConfigureWithKnownPortsTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
package com.asarkar.spring.cassandra
1+
package com.asarkar.spring.test.cassandra
22

3-
import com.asarkar.spring.test.AutoConfigureCassandraUnit
43
import org.cassandraunit.utils.EmbeddedCassandraServerHelper
54
import org.junit.jupiter.api.Assertions
65
import org.junit.jupiter.api.Test

src/test/kotlin/com/asarkar/spring/cassandra/AutoConfigureWithRandomPortsTest.kt renamed to src/test/kotlin/com/asarkar/spring/test/cassandra/AutoConfigureWithRandomPortsTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
package com.asarkar.spring.cassandra
1+
package com.asarkar.spring.test.cassandra
22

3-
import com.asarkar.spring.test.AutoConfigureCassandraUnit
43
import org.cassandraunit.utils.EmbeddedCassandraServerHelper
54
import org.junit.jupiter.api.Assertions
65
import org.junit.jupiter.api.Test
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.asarkar.spring.test.cassandra
2+
3+
import org.junit.jupiter.api.Assertions
4+
import org.junit.jupiter.api.Test
5+
import org.springframework.beans.factory.annotation.Value
6+
import org.springframework.boot.test.context.SpringBootTest
7+
8+
@SpringBootTest
9+
class NonCassandraTest {
10+
@Value("\${cassandra-unit.native-transport-port:-1}")
11+
private var nativeTransportPort: Int = -1
12+
13+
@Value("\${cassandra-unit.rpc-port:-1}")
14+
private var rpcPort: Int = -1
15+
16+
@Test
17+
fun testPorts() {
18+
Assertions.assertEquals(-1, nativeTransportPort)
19+
Assertions.assertEquals(-1, rpcPort)
20+
}
21+
}

src/test/kotlin/com/asarkar/spring/cassandra/TestApp.kt renamed to src/test/kotlin/com/asarkar/spring/test/cassandra/TestApp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.asarkar.spring.cassandra
1+
package com.asarkar.spring.test.cassandra
22

33
import org.springframework.boot.autoconfigure.SpringBootApplication
44
import org.springframework.boot.runApplication

0 commit comments

Comments
 (0)