-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...tests/integ-test-files/generators/plantuml/value-impact-map-diagram-generation-test-6.cml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
Stakeholders { | ||
StakeholderGroup Customers_and_Shoppers { | ||
Stakeholder Shoppers_in_Emergency_Situations | ||
Stakeholder Others | ||
} | ||
StakeholderGroup Delivery_Staff_of_Suppliers | ||
} | ||
|
||
ValueRegister SD_Values { | ||
|
||
ValueCluster Autonomy { | ||
core AUTONOMY | ||
demonstrator "customer values potentially increased freedom" | ||
demonstrator "delivery staff's freedom might suffer because of work-life-balance" | ||
|
||
Value Freedom { | ||
Stakeholder Customers_and_Shoppers { | ||
priority HIGH | ||
impact MEDIUM | ||
consequences | ||
good "increased freedom" | ||
} | ||
|
||
Stakeholder Delivery_Staff_of_Suppliers { | ||
priority HIGH | ||
impact HIGH | ||
consequences | ||
bad "work-life-balance" | ||
good "tbd" | ||
|
||
} | ||
|
||
} | ||
Value Sustainability { | ||
Stakeholder Customers_and_Shoppers { | ||
priority HIGH | ||
impact LOW | ||
consequences | ||
bad "fostering unsustainable behavior (always ordering last minute)" | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...org/contextmapper/dsl/generators/plantuml/value_impact_mapping/model/StakeholderTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.contextmapper.dsl.generators.plantuml.value_impact_mapping.model; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
import static org.junit.jupiter.api.Assertions.assertFalse; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.contextmapper.dsl.generator.plantuml.value_impact_mapping.model.Stakeholder; | ||
import org.contextmapper.dsl.generator.plantuml.value_impact_mapping.model.Value; | ||
|
||
class StakeholderTest { | ||
|
||
@Test | ||
void ensureStakeholdersWithSameNameAreEqual() { | ||
Stakeholder stakeholder1 = new Stakeholder("User"); | ||
Stakeholder stakeholder2 = new Stakeholder("User"); | ||
|
||
assertTrue(stakeholder1.equals(stakeholder2)); | ||
assertTrue(stakeholder1.equals(stakeholder1)); | ||
assertFalse(stakeholder1.equals(null)); | ||
assertFalse(stakeholder1.equals(new Value("just a test"))); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters