use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests

This commit is contained in:
Alexey Kudravtsev
2016-07-20 15:47:18 +03:00
parent 6b15812a4e
commit db48c64473
68 changed files with 359 additions and 210 deletions
@@ -1,6 +1,6 @@
// unreachables
import java.io.*;
import java.net.*;
public class a {
interface ii {}
@@ -135,16 +135,21 @@ interface ii {}
int i = 6;
}
}
void cf4() throws java.net.SocketException {
void cf4() throws SocketException {
try {
bind();
} catch (java.net.SocketException se) {
} catch (SocketException se) {
throw se;
} catch(java.io.IOException e) {
throw new java.net.SocketException(e.getMessage());
} catch(IOException e) {
throw new SocketException(e.getMessage());
}
}
void bind() throws java.net.SocketException {}
static class SocketException extends IOException {
public SocketException(String message) {
super(message);
}
}
void bind() throws SocketException {}
void cf5() {