Search in sources :

Example 21 with GenericFormatterTestRequest

use of org.eclipse.xtext.formatting2.internal.GenericFormatterTestRequest in project xtext-core by eclipse.

the class GenericFormatterTester method assertFormatted.

public void assertFormatted(final Procedure1<? super GenericFormatterTestRequest> test) {
    final GenericFormatterTestRequest request = this.requestProvider.get();
    test.apply(request);
    this.tester.assertFormatted(request);
}
Also used : GenericFormatterTestRequest(org.eclipse.xtext.formatting2.internal.GenericFormatterTestRequest)

Aggregations

GenericFormatterTestRequest (org.eclipse.xtext.formatting2.internal.GenericFormatterTestRequest)21 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)20 IFormattableDocument (org.eclipse.xtext.formatting2.IFormattableDocument)20 GenericFormatter (org.eclipse.xtext.formatting2.internal.GenericFormatter)20 ITextRegionExtensions (org.eclipse.xtext.formatting2.regionaccess.ITextRegionExtensions)20 Test (org.junit.Test)20 IHiddenRegionFormatter (org.eclipse.xtext.formatting2.IHiddenRegionFormatter)18 Procedure1 (org.eclipse.xtext.xbase.lib.Procedures.Procedure1)18 IDList (org.eclipse.xtext.formatting2.internal.formattertestlanguage.IDList)11 MapBasedPreferenceValues (org.eclipse.xtext.preferences.MapBasedPreferenceValues)8 KWList (org.eclipse.xtext.formatting2.internal.formattertestlanguage.KWList)7 Collection (java.util.Collection)3 ITextRegion (org.eclipse.xtext.util.ITextRegion)3 TextRegion (org.eclipse.xtext.util.TextRegion)3 EObject (org.eclipse.emf.ecore.EObject)2 FormatterRequest (org.eclipse.xtext.formatting2.FormatterRequest)2 IAutowrapFormatter (org.eclipse.xtext.formatting2.IAutowrapFormatter)2 IFormattableSubDocument (org.eclipse.xtext.formatting2.IFormattableSubDocument)2 IHiddenRegionFormatting (org.eclipse.xtext.formatting2.IHiddenRegionFormatting)2 ISubFormatter (org.eclipse.xtext.formatting2.ISubFormatter)2