/* | |
* Copyright 2015-2023 the original author or authors. | |
* | |
* All rights reserved. This program and the accompanying materials are | |
* made available under the terms of the Eclipse Public License v2.0 which | |
* accompanies this distribution and is available at | |
* | |
* https://www.eclipse.org/legal/epl-v20.html | |
*/ | |
package example; | |
import static org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD; | |
import java.util.stream.IntStream; | |
import org.junit.jupiter.api.Disabled; | |
import org.junit.jupiter.api.Tag; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.parallel.Execution; | |
class SlowTests { | |
void a() { | |
foo(); | |
} | |
void b() { | |
foo(); | |
} | |
void c() { | |
foo(); | |
} | |
void d() { | |
foo(); | |
} | |
void e() { | |
foo(); | |
} | |
void f() { | |
foo(); | |
} | |
void g() { | |
foo(); | |
} | |
void h() { | |
foo(); | |
} | |
void i() { | |
foo(); | |
} | |
void j() { | |
foo(); | |
} | |
void k() { | |
foo(); | |
} | |
void l() { | |
foo(); | |
} | |
void m() { | |
foo(); | |
} | |
void n() { | |
foo(); | |
} | |
void o() { | |
foo(); | |
} | |
void p() { | |
foo(); | |
} | |
void q() { | |
foo(); | |
} | |
void r() { | |
foo(); | |
} | |
void s() { | |
foo(); | |
} | |
private void foo() { | |
IntStream.range(1, 100_000_000).mapToDouble(i -> Math.pow(i, i)).map(Math::sqrt).max(); | |
} | |
} | |