| 5 | import java.util.concurrent.Semaphore; |
| 6 | |
| 7 | public class TestLoad { |
| 8 | |
| 9 | |
| 10 | public static void main(String[] args) { |
| 11 | RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean(); |
| 12 | runtime.getName(); |
| 13 | |
| 14 | } |
| 15 | |
| 16 | |
| 17 | public static void go() { |
| 18 | ExecutorService pool = Executors.newCachedThreadPool(); |
| 19 | final Semaphore sp = new Semaphore(1, true); |
| 20 | for (int i = 0; i < 1; i++) { |
| 21 | Runnable runnable = new Runnable() { |
| 22 | @Override |
| 23 | public void run() { |
| 24 | try { |
| 25 | sp.acquire(); |
| 26 | |
| 27 | } catch (InterruptedException e) { |
| 28 | } |
| 29 | new SennaLoader(); |
| 30 | sp.release(); |
| 31 | } |
| 32 | }; |
| 33 | pool.execute(runnable); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected