小编Ild*_*kov的帖子

如果字符串仅包含唯一字符,则使用JavaScript进行正则表达式测试

字符串仅包含[A-Za-z0-9]字符.我需要知道测试的字符串是否包含至少一个重复字符.

以下应该返回false:

abc1
abc
Run Code Online (Sandbox Code Playgroud)

以下内容应返回true:

abc11
1abc1
aabc1
Run Code Online (Sandbox Code Playgroud)

ABCA

javascript regex

9
推荐指数
1
解决办法
859
查看次数

如何在 SoapUI 项目中按字母顺序排列服务操作?

Soapui 项目有 100+ 个操作的服务。当操作未排序时,导航非常困难。有没有办法在soapui中订购操作?

我正在使用soapui 免费版本,但我也对SoapUI NG Pro 的解决方案感兴趣。

soapui

7
推荐指数
2
解决办法
2425
查看次数

Kotlin多模块项目依赖关系在测试生命周期中尚未解决

项目结构: 纯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)

testing maven multi-module kotlin

7
推荐指数
2
解决办法
1266
查看次数

标签 统计

javascript ×1

kotlin ×1

maven ×1

multi-module ×1

regex ×1

soapui ×1

testing ×1