forked from runtimeverification/k
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathKRunFrontEndTest.java
More file actions
35 lines (29 loc) · 1.18 KB
/
KRunFrontEndTest.java
File metadata and controls
35 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2014-2019 K Team. All Rights Reserved.
package org.kframework.krun;
import com.google.inject.util.Providers;
import org.junit.Ignore;
import org.junit.Test;
import org.kframework.main.GlobalOptions;
import org.kframework.utils.BaseTestCase;
import org.kframework.utils.file.JarInfo;
import org.mockito.Mock;
import static org.mockito.Mockito.*;
public class KRunFrontEndTest extends BaseTestCase {
@Mock
JarInfo jarInfo;
@Test
public void testVersion() {
GlobalOptions options = new GlobalOptions();
options.version = true;
KRunFrontEnd frontend = new KRunFrontEnd(options, null, null, jarInfo, scope, Providers.of(kompiledDir), kem, new KRunOptions(), Providers.of(files), null, null, null, null, null);
frontend.main();
verify(jarInfo).printVersionMessage();
}
@Test @Ignore
public void testNothingAvailable() {
GlobalOptions options = new GlobalOptions();
KRunFrontEnd frontend = new KRunFrontEnd(options, null, null, jarInfo, scope, Providers.of(kompiledDir), kem, new KRunOptions(), Providers.of(files), null, null, null, null, null);
frontend.main();
verify(kem).print();
}
}