字符串仅包含[A-Za-z0-9]字符.我需要知道测试的字符串是否包含至少一个重复字符.
以下应该返回false:
abc1
abc
Run Code Online (Sandbox Code Playgroud)
以下内容应返回true:
abc11
1abc1
aabc1
Run Code Online (Sandbox Code Playgroud)
ABCA
Soapui 项目有 100+ 个操作的服务。当操作未排序时,导航非常困难。有没有办法在soapui中订购操作?
我正在使用soapui 免费版本,但我也对SoapUI NG Pro 的解决方案感兴趣。
项目结构: 纯Kotlin作为多模块maven应用
kotlinspringboot(root-module)
API
集成的测试
问题: 我跑的时候
$ cd ./kotlingspringboot/integration-tests/
$ mvn test
Run Code Online (Sandbox Code Playgroud)
要么
$ cd ./kotlingspringboot/integration-tests/
$ mvn kotlin:test-compile
Run Code Online (Sandbox Code Playgroud)
我从api模块得到关于类的未解析引用的编译错误:
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.2.21:test-compile (test-compile) on project hello-integration-tests: Compilation failure: Compilation failure:
[ERROR] C:\workspace\kotlinspringboot\integration-tests\src\test\kotlin\org\ildar\hello\integration\HelloEndpointTests.kt:[6,18] Unresolved reference: SpringKotlinHelloWorldApplication
Run Code Online (Sandbox Code Playgroud)
注意:我之前运行过mvn clean install并验证.m2缓存包含有效的api模块jar.
api(子模块)pom.xml
....
<parent>
<artifactId>kotlin-spring-boot</artifactId>
<groupId>org.ildar</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hello-api</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
....
Run Code Online (Sandbox Code Playgroud)
集成测试(子模块)pom.xml
<parent>
<artifactId>kotlin-spring-boot</artifactId>
<groupId>org.ildar</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hello-integration-tests</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
<plugins>
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
<goals> <goal>compile</goal> </goals>
</execution> …Run Code Online (Sandbox Code Playgroud)