use of com.liferay.blade.util.NullProgressMonitor in project liferay-ide by liferay.
the class RestoreEntryTagsTest method findProblems.
@Test
public void findProblems() throws Exception {
ServiceReference<Migration> sr = context.getServiceReference(Migration.class);
Migration m = context.getService(sr);
List<Problem> problems = m.findProblems(new File("jsptests/restore-entry/"), new NullProgressMonitor());
assertEquals(1, problems.size());
boolean found = false;
for (Problem problem : problems) {
if (problem.file.getName().endsWith("RestoreEntryTagsTest.jsp")) {
if (problem.lineNumber == 2 && problem.startOffset >= 12 && problem.endOffset >= 318) {
found = true;
}
}
}
if (!found) {
fail();
}
}
use of com.liferay.blade.util.NullProgressMonitor in project liferay-ide by liferay.
the class TrashUndoTagsTest method findProblems.
@Test
public void findProblems() throws Exception {
ServiceReference<Migration> sr = context.getServiceReference(Migration.class);
Migration m = context.getService(sr);
List<Problem> problems = m.findProblems(new File("jsptests/liferay-ui-trash-undo/"), new NullProgressMonitor());
assertEquals(1, problems.size());
}
use of com.liferay.blade.util.NullProgressMonitor in project liferay-ide by liferay.
the class CustomAUIValidatorsTagsTest method findProblems.
@Test
public void findProblems() throws Exception {
ServiceReference<Migration> sr = context.getServiceReference(Migration.class);
Migration m = context.getService(sr);
List<Problem> problems = m.findProblems(new File("jsptests/custom-aui-validators/"), new NullProgressMonitor());
assertEquals(9, problems.size());
boolean found = false;
for (Problem problem : problems) {
if (problem.file.getName().endsWith("CustomAUIValidatorsTest.jsp") && problem.lineNumber == 314 && problem.startOffset >= 11387 && problem.endOffset >= 11393) {
found = true;
}
}
if (!found) {
fail();
}
}
use of com.liferay.blade.util.NullProgressMonitor in project liferay-ide by liferay.
the class DdmTemplateSelectorTagsTest method findProblems.
@Test
public void findProblems() throws Exception {
ServiceReference<Migration> sr = context.getServiceReference(Migration.class);
Migration m = context.getService(sr);
List<Problem> problems = m.findProblems(new File("jsptests/ddm-template-selector/"), new NullProgressMonitor());
assertEquals(1, problems.size());
boolean found = false;
for (Problem problem : problems) {
if (problem.file.getName().endsWith("DdmTemplateSelectorTagsTest.jsp")) {
if (problem.lineNumber == 70 && problem.startOffset >= 2538 && problem.endOffset >= 2549) {
found = true;
}
}
}
if (!found) {
fail();
}
}
use of com.liferay.blade.util.NullProgressMonitor in project liferay-ide by liferay.
the class DeprecatedLiferayPortletIconBackTagsTest method findProblems.
@Test
public void findProblems() throws Exception {
ServiceReference<Migration> sr = context.getServiceReference(Migration.class);
Migration m = context.getService(sr);
List<Problem> problems = m.findProblems(new File("jsptests/liferay-portlet-icon-back/"), new NullProgressMonitor());
assertEquals(1, problems.size());
boolean found = false;
for (Problem problem : problems) {
if (problem.file.getName().endsWith("LiferayPortletIconBack.jsp")) {
if (problem.lineNumber == 1) {
found = true;
}
}
}
if (!found) {
fail();
}
}
Aggregations