@@ -0,0 +1,1469 @@
+/*******************************************************************************%0A * Copyright (c) 2016 Red Hat Inc. and others.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies range distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A *     Red Hat Inc. - initial API and implementation%0A *******************************************************************************/%0Apackage org.jboss.tools.vscode.java.internal;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport org.eclipse.lsp4j.Position;%0Aimport org.eclipse.lsp4j.Range;%0A%0A/**%0A * A set of assertion methods about LSP4J entities%0A *%0A * @author Fred Bricon%0A *%0A */%0Apublic class Lsp4jAssertions %7B%0A%0A%09public static void assertRange(int expectedLine, int expectedStart, int expectedEnd, Range range) %7B%0A%09%09assertNotNull(%22Range is null%22, range);%0A%09%09assertPosition(expectedLine, expectedStart, range.getStart());%0A%09%09assertPosition(expectedLine, expectedEnd, range.getEnd());%0A%09%7D%0A%0A%09public static void assertPosition(int expectedLine, int expectedChar, Position position) %7B%0A%09%09assertNotNull(%22Position is null%22, position);%0A%09%09assertEquals(%22Unexpected line position from %22+position, expectedLine, position.getLine());%0A%09%09assertEquals(%22Unexpected character position from %22+position, expectedChar, position.getCharacter());%0A%09%7D%0A%7D%0A

Add test assertion helper class