Skip to content

Integration#2

Merged
ritosilva merged 43 commits intomasterfrom
Integration
May 4, 2025
Merged

Integration#2
ritosilva merged 43 commits intomasterfrom
Integration

Conversation

@Tomas-sudo45
Copy link
Contributor

No description provided.

@ritosilva ritosilva self-assigned this Apr 18, 2025
@ritosilva ritosilva self-requested a review April 18, 2025 12:07
Copy link
Contributor

@ritosilva ritosilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not read in the code where the behaviour values are used.


def setup() {
given:
'load behaviour directory'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same line as above

def setup() {
given:
'load behaviour directory'
def mavenBaseDir = System.getProperty("maven.basedir", new File(".").absolutePath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define "maven.basedir" as a constant in a superclass

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

'load behaviour directory'
def mavenBaseDir = System.getProperty("maven.basedir", new File(".").absolutePath)
behaviourService.LoadDir(mavenBaseDir, "groovy/" + this.class.simpleName)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, these two lines can be in an reusable method in a superclass

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


def setup() {
given:
'load behaviour directory'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better name is given: "a behavior specification"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

and: 'a tournament where the first user is the creator'
tournamentDto = createTournament(TIME_1, TIME_3, 2, userCreatorDto.getAggregateId(), courseExecutionDto.getAggregateId(), [topicDto1.getAggregateId(),topicDto2.getAggregateId()])

and: 'two units of work'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually are two functionality instances

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

throw new IllegalArgumentException("Step with name: " + stepName + " not found.");
}
} No newline at end of file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done



}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

private static BehaviourHandler instance;
private static Map<String, Integer> funcCounter = new HashMap<>();
private static String directory;
private static String ReportFile = "BehaviourReport.txt";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define as a constant

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


try {
return executionPlan.execute(unitOfWork)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file look just like formatting

Copy link
Contributor

@ritosilva ritosilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tcc tests are not working

for (FlowStep step: plan) {
if (!this.stepFutures.containsKey(step)) { // if the step has dependencies
stepName = step.getName();
final int faultValue = behaviour.containsKey(stepName) ? behaviour.get(stepName).get(0) : 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does 0 mean? NOT_FAULT?

@ritosilva ritosilva merged commit 7058dae into master May 4, 2025
LourencoPonces added a commit that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants