Skip to content

Commit

Permalink
adapt xtrem tdd links
Browse files Browse the repository at this point in the history
  • Loading branch information
ythirion committed Apr 26, 2024
1 parent b350530 commit dcc5f29
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions docs/exercise/day08/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Here are the business rules :
- Any other characters are not authorized.
```

We can do it using [`Example Mapping`](https://xtrem-tdd.netlify.app/Flavours/example-mapping) workshop.
We can do it using [`Example Mapping`](https://xtrem-tdd.netlify.app/Flavours/Practices/example-mapping) workshop.

Here are some examples we can use for this business rule:

Expand All @@ -26,7 +26,7 @@ Here are some examples we can use for this business rule:

We design the method from our test.

🟢 Then we [generate the code through our IDE](https://xtrem-tdd.netlify.app/Flavours/generate-code-from-usage)
🟢 Then we [generate the code through our IDE](https://xtrem-tdd.netlify.app/Flavours/Design/generate-code-from-usage)

🔵 We can move the generated class to a named package (`password`)

Expand Down
4 changes: 2 additions & 2 deletions docs/exercise/day08/solution/step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Here are the business rules :
- Any other characters are not authorized.
```

We can do it using [`Example Mapping`](https://xtrem-tdd.netlify.app/Flavours/example-mapping) workshop.
We can do it using [`Example Mapping`](https://xtrem-tdd.netlify.app/Flavours/Practices/example-mapping) workshop.

### Contains at least 8 characters

Expand All @@ -33,7 +33,7 @@ We design the method from our test.

![Our first failing test](img/first-failing-test.png)

🟢 Then we [generate the code through our IDE](https://xtrem-tdd.netlify.app/Flavours/generate-code-from-usage)
🟢 Then we [generate the code through our IDE](https://xtrem-tdd.netlify.app/Flavours/Design/generate-code-from-usage)

After generation, it looks like this:

Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day09/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- It will update the `totalAmount` meaning that the second time we call the method the result will be wrong

- The responsibilities are mixed in the methods
- We will apply the [`Command Query Separation` principle](https://xtrem-tdd.netlify.app/Flavours/command-query-separation) to fix this problem.
- We will apply the [`Command Query Separation` principle](https://xtrem-tdd.netlify.app/Flavours/Design/command-query-separation) to fix this problem.

| | Returns | Side Effect |
|-------------|:--------:|:-------------------------------:|
Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day09/solution/step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class Client {

> "Asking a question should not change the answer" - Bertrand Meyer
We will apply the [`Command Query Separation` principle](https://xtrem-tdd.netlify.app/Flavours/command-query-separation) to fix this problem.
We will apply the [`Command Query Separation` principle](https://xtrem-tdd.netlify.app/Flavours/Design/command-query-separation) to fix this problem.


| | Returns | Side Effect |
Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day11/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The concept of [`libyear`](https://libyear.com/) can help us to do so.
- It makes dependencies management much, much easier

If you want to know more on "how to keep you dependencies up-to-date",
you read this [article](https://xtrem-tdd.netlify.app/Flavours/keep-dependencies-up-to-date).
you read this [article](https://xtrem-tdd.netlify.app/Flavours/Practices/keep-dependencies-up-to-date).

>**Tip of the day: Code maintenance is not always about refactoring.**
Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day11/solution/step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ This kind of tool can really help teams take decisions regarding dependencies de

![Failure](img/failing-build.png)

If you want to know more on "how to keep you dependencies up-to-date", you read this [article](https://xtrem-tdd.netlify.app/Flavours/keep-dependencies-up-to-date).
If you want to know more on "how to keep you dependencies up-to-date", you read this [article](https://xtrem-tdd.netlify.app/Flavours/Practices/keep-dependencies-up-to-date).
2 changes: 1 addition & 1 deletion docs/exercise/day13/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
In all tests, we are manipulating Articles with Comments. We want to
create them in a simpler and more maintainable way.

We can use [`Test Data Buidler`](https://xtrem-tdd.netlify.app/Flavours/test-data-builders) pattern to achieve this
We can use [`Test Data Buidler`](https://xtrem-tdd.netlify.app/Flavours/Testing/test-data-builders) pattern to achieve this
purpose.

It will:
Expand Down
4 changes: 2 additions & 2 deletions docs/exercise/day13/solution/step-by-step.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Day 13: Find a way to eliminate the irrelevant, and amplify the essentials of those tests.

We can use [`Test Data Buidler`](https://xtrem-tdd.netlify.app/Flavours/test-data-builders) pattern to achieve this
We can use [`Test Data Buidler`](https://xtrem-tdd.netlify.app/Flavours/Testing/test-data-builders) pattern to achieve this
purpose.

It will:
Expand Down Expand Up @@ -83,7 +83,7 @@ void setup() {
}
```

- We then [`generate code from usage`](https://xtrem-tdd.netlify.app/Flavours/generate-code-from-usage)
- We then [`generate code from usage`](https://xtrem-tdd.netlify.app/Flavours/Design/generate-code-from-usage)

![Generate Code From Usage](img/generate-code-from-usage.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day17/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`How could we design one test that has the impact of thousands?`

We can use [`Property-Based Testing`](https://xtrem-tdd.netlify.app/flavours/pbt/). Here we choose to use the
We can use [`Property-Based Testing`](https://xtrem-tdd.netlify.app/Flavours/Testing/pbt). Here we choose to use the
library [`vavr-test`](https://github.com/vavr-io/vavr-test)(you may use alternatives like `junit quickcheck` for
example).

Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day17/solution/step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`How could we design one test that has the impact of thousands?`

We can use [`Property-Based Testing`](https://xtrem-tdd.netlify.app/flavours/pbt/). Here we choose to use the
We can use [`Property-Based Testing`](https://xtrem-tdd.netlify.app/Flavours/Testing/pbt). Here we choose to use the
library [`vavr-test`](https://github.com/vavr-io/vavr-test)(you may use alternatives like `junit quickcheck` for
example).

Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day18/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This kind of issues in the code are [`Linguistic Anti Patterns`](https://www.ven
> How could we simply detect these issues?
### Architecture Unit Tests
Take a look at [this page](https://xtrem-tdd.netlify.app/Flavours/archunit) describing this concept.
Take a look at [this page](https://xtrem-tdd.netlify.app/Flavours/Architecture/archunit) describing this concept.

- We can use the library [`archunit`](https://www.archunit.org/) in java to describe and enforce architecture / design rules.

Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day18/solution/step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This kind of issues in the code are [`Linguistic Anti Patterns`](https://www.ven
> How could we simply detect these issues?
### Architecture Unit Tests
Take a look at [this page](https://xtrem-tdd.netlify.app/Flavours/archunit) describing this concept.
Take a look at [this page](https://xtrem-tdd.netlify.app/Flavours/Architecture/archunit) describing this concept.

- We can use the library [`archunit`](https://www.archunit.org/) in java to describe and enforce architecture / design rules.

Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day19/solution/challenge-done.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The problem if we use an `Error` here is that we need to be able to express that

The good news is that we can do it really easily by using existing mechanism: monadic container `Either<L, R>`. It is already defined in [`vavr`](https://docs.vavr.io/#_either).

More explanations on this concept [here](https://xtrem-tdd.netlify.app/Flavours/monads).
More explanations on this concept [here](https://xtrem-tdd.netlify.app/Flavours/Design/monads).

🔴 We start by describing our new expectation from a test
- We design a new method `addCommentWithoutException`
Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day19/solution/step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The problem if we use an `Error` here is that we need to be able to express that

The good news is that we can do it really easily by using existing mechanism: monadic container `Either<L, R>`. It is already defined in [`vavr`](https://docs.vavr.io/#_either).

More explanations on this concept [here](https://xtrem-tdd.netlify.app/Flavours/monads).
More explanations on this concept [here](https://xtrem-tdd.netlify.app/Flavours/Design/monads).

🔴 We start by describing our new expectation from a test
- We design a new method `addCommentWithoutException`
Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day23/solution/steps/1.cover-the-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ aUserWithTrips.addFriend(loggedUser);
> What is the impact on our tests if the User constructor changes?
#### Use Test Data Builders
🔵 [Test Data Builders](https://xtrem-tdd.netlify.app/Flavours/test-data-builders) can help you when writing / maintaining unit tests:
🔵 [Test Data Builders](https://xtrem-tdd.netlify.app/Flavours/Testing/test-data-builders) can help you when writing / maintaining unit tests:
- It helps to hide / encapsulate / centralize the creation of your objects
- Make it more flexible if your design changes
- Make your tests more readable and more business oriented
Expand Down
2 changes: 1 addition & 1 deletion docs/exercise/day23/solution/steps/2.mutate-some-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class DemoTests {
> Coverage metrics are a good negative indicator BUT a bad positive one...
### Mutation Testing
Let's assess the quality of our tests by using [mutation testing](https://xtrem-tdd.netlify.app/Flavours/mutation-testing)
Let's assess the quality of our tests by using [mutation testing](https://xtrem-tdd.netlify.app/Flavours/Testing/mutation-testing)

- Test our tests by introducing MUTANTS (fault) into our production code during the test execution :
- To check that the test is failing
Expand Down
4 changes: 2 additions & 2 deletions docs/exercise/day23/solution/steps/4.other-refactorings.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class UserBuilder {
### Be transparent in your contracts
- For the behavior and guard in the `TripService` we may favor continuation `functions`
- If we do so we should change the return type of our method as well to represent the computation issue that could be raised
- In other terms we should use a [monad](https://xtrem-tdd.netlify.app/Flavours/monads)
- In other terms we should use a [monad](https://xtrem-tdd.netlify.app/Flavours/Design/monads)
- Our methods should be as explicit as possible
- Let's decide to use a `Try` from `vavr`

Expand Down Expand Up @@ -105,7 +105,7 @@ public Try<Seq<Trip>> retrieveFriendTripsWithTry(User user, User loggedUser) {
}
```

- Continue this by using the [strangler pattern](https://xtrem-tdd.netlify.app/Flavours/strangler-pattern)
- Continue this by using the [strangler pattern](https://xtrem-tdd.netlify.app/Flavours/Refactoring/strangler-pattern)

🔵 do the opposite now -> call the new method from the former one

Expand Down

0 comments on commit dcc5f29

Please sign in to comment.