Search in sources :

Example 1 with FormatBuilderParticipant

use of com.avaloq.tools.ddk.xtext.format.ui.builder.FormatBuilderParticipant in project dsl-devkit by dsldevkit.

the class FormatBuilderParticipantTest method beforeAllTests.

/**
 * Prepare mocks for all tests.
 */
@Override
protected void beforeAllTests() {
    super.beforeAllTests();
    participant = new FormatBuilderParticipant();
    delta = mock(Delta.class);
    uriCorrect = mock(URI.class);
    when(delta.getUri()).thenReturn(uriCorrect);
}
Also used : FormatBuilderParticipant(com.avaloq.tools.ddk.xtext.format.ui.builder.FormatBuilderParticipant) Delta(org.eclipse.xtext.resource.IResourceDescription.Delta) URI(org.eclipse.emf.common.util.URI)

Aggregations

FormatBuilderParticipant (com.avaloq.tools.ddk.xtext.format.ui.builder.FormatBuilderParticipant)1 URI (org.eclipse.emf.common.util.URI)1 Delta (org.eclipse.xtext.resource.IResourceDescription.Delta)1