Skip to content

Runs forever, even completing tests #482

Closed

Description

Hi,

I create a new project using maven and 'spring-boot-blank-archetype'.
After that, i just kept the following code:

//HelloController.java
package com.tainer.soft.apptotest.core;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("/")
    String hello() {
        return "Hello World!";
    }
}

And

//HelloControllerTest.java
@Test
public void testHello() throws Exception {
    when().get("/").then()
            .body(is("Hello World!"));
}

And then, running the testHello unit test, this messagem shown on the Java Test Runner Output:

[INFO] @@<TestRunner-{"name":"testFinished", "attributes":{"name":"com.tainer.soft.apptotest.core.HelloControllerTest#testHello", "duration":"3398"}}-TestRunner>
[INFO] @@<TestRunner-{"name":"testSuiteFinished", "attributes":{"name":"com.tainer.soft.apptotest.core.HelloControllerTest"}}-TestRunner>
[INFO] @@<TestRunner-{"name":"testSummary", "attributes":{"message":"Total tests run: 1, Failures: 0, Skips: 0"}}-TestRunner>

while a popup "Running Tests..." runs forever, without finish the process.

Any idea?

tanks for your time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions