blob: ba56c38a8c284b86fd7c6dc8bb25d54c224c8db5 [file] [log] [blame]
package org.eclipse.lsp4j.test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.eclipse.lsp4j.CodeAction;
import org.junit.Test;
public class NonNullTest {
@Test
public void testCodeAction1() {
try {
new CodeAction(null);
fail("Expected a NullPointerException");
} catch (NullPointerException exc) {
assertEquals("Property must not be null: title", exc.getMessage());
}
}
@Test
public void testCodeAction2() {
try {
CodeAction codeAction = new CodeAction();
codeAction.setTitle(null);
fail("Expected a NullPointerException");
} catch (NullPointerException exc) {
assertEquals("Property must not be null: title", exc.getMessage());
}
}
}