Skip to content

Commit

Permalink
Temporarily revert CML rule for coordination between services of diff…
Browse files Browse the repository at this point in the history
…erent contexts (moved to feature branch)

This reverts commit cc42f8d.
  • Loading branch information
stefan-ka committed Nov 24, 2023
1 parent cc42f8d commit 1ed25be
Show file tree
Hide file tree
Showing 30 changed files with 12 additions and 1,296 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ plugin.xml_gen
.gradle/
build/

# MacOS
.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -64,34 +64,5 @@ class SketchMinerGeneratorCommandTest extends AbstractCMLCommandTest {
srcGenFolder.exists.assertTrue
new File(srcGenFolder, "test_BC_TestContext_TestFlow.sketch_miner").exists.assertTrue
}

@Test
def void testSketchMinerGeneratorCommandExecutionOnCoordination() {
// given
initializeCommandsDynamically()
val model = '''
BoundedContext ContextA {
Application {
Coordination TestCoordination {
ContextA::TestService::testOperation;
}
Service TestService {
testOperation;
}
}
}
'''
val fileURI = 'test.cml'.writeFile(model)

// when
val result = languageServer.executeCommand(
new ExecuteCommandParams("cml.generate.sketchminer", #[new JsonPrimitive(fileURI)]))
val resultVal = result.get as String

// then
CMLCommandService.COMMAND_EXECUTED_RETURN_VALUE.assertEquals(resultVal)
srcGenFolder.exists.assertTrue
new File(srcGenFolder, "coordinations/test_BC_ContextA_TestCoordination.sketch_miner").exists.assertTrue
}

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@
import org.contextmapper.dsl.ide.actions.impl.SwitchFromSharedKernelToPartnershipAction;
import org.contextmapper.dsl.ide.edit.WorkspaceEditRecorder;
import org.contextmapper.dsl.ide.quickfix.QuickfixCommandMapper;
import org.contextmapper.dsl.ide.quickfix.impl.OpenCoordinationInSketchMinerCommandMapper;
import org.contextmapper.dsl.ide.quickfix.impl.OpenFlowInSketchMinerCommandMapper;
import org.contextmapper.dsl.ide.quickfix.impl.SplitStoryByVerbCommandMapper;
import org.contextmapper.dsl.quickfixes.CMLQuickFix;
import org.contextmapper.dsl.quickfixes.CreateMissingBoundedContextQuickFix;
import org.contextmapper.dsl.quickfixes.SplitStoryByVerb;
import org.contextmapper.dsl.quickfixes.tactic.ExtractIDValueObjectQuickFix;
import org.contextmapper.dsl.validation.ApplicationCoordinationSemanticsValidator;
import org.contextmapper.dsl.validation.ApplicationFlowSemanticsValidator;
import org.contextmapper.dsl.validation.DomainObjectValidator;
import org.contextmapper.dsl.validation.UserRequirementsValidator;
Expand Down Expand Up @@ -121,7 +119,6 @@ private void registerAllQuickFixes() {
registerActionQuickFix(DomainObjectValidator.ID_IS_PRIMITIVE_CODE, new ExtractIDValueObjectQuickFix());
registerCommandQuickFix(UserRequirementsValidator.ID_SPLIT_FEATURE_BY_VERB_SUGGESTION, new SplitStoryByVerbCommandMapper(new SplitStoryByVerb()));
registerCommandQuickFix(ApplicationFlowSemanticsValidator.SKETCH_MINER_INFO_ID, new OpenFlowInSketchMinerCommandMapper());
registerCommandQuickFix(ApplicationCoordinationSemanticsValidator.SKETCH_MINER_INFO_ID, new OpenCoordinationInSketchMinerCommandMapper());
}

public List<? extends Command> getApplicableActionCommands(CMLResource resource, List<EObject> selectedObjects) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1ed25be

Please sign in to comment.