The below code should fail according to the various users of this site. The documentation is either vague or does not directly address this. Why does this pass instead of waiting forever? Note code below is a JUnit test v4.12
@Test(timeout=10000)
public void test() {
Thread t = new Thread(() -> {
Thread curT = Thread.currentThread();
try {
curT.join();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
});
t.start();
}