Commit 75ad8e13 authored by Gerson Sunyé's avatar Gerson Sunyé
Browse files

Correct Junit execution diagram

parent 72fbb6a3
This diff is collapsed.
resources/png/junit-execution.png

211 KB | W: | H:

resources/png/junit-execution.png

215 KB | W: | H:

resources/png/junit-execution.png
resources/png/junit-execution.png
resources/png/junit-execution.png
resources/png/junit-execution.png
  • 2-up
  • Swipe
  • Onion skin
## Mapping UML Designs to Code # Mapping UML Designs to Code
### Behavioral Aspects ### Behavioral Aspects
---- ----
......
This diff is collapsed.
...@@ -233,31 +233,74 @@ public class ConcreteB extends IntermediateClass {} ...@@ -233,31 +233,74 @@ public class ConcreteB extends IntermediateClass {}
### Add entity ### Add entity
- Add an attribute (instance or class level) <div>
- Add a class - **Add an attribute** (instance or class level)
- Add a method (instance or class level) - **Add a class**
- **Add a method** (instance or class level)
</div>
<!-- .element: id="left" style="font-size: 20pt;"-->
<div>
![](resources/png/add-entity.png) ![](resources/png/add-entity.png)
<!-- .element: style="position:relative; width:500px;" --> </div>
<!-- .element: id="right" -->
---- ----
### Remove entity ### Remove entity
- Remove an attribute (instance or class level) <div>
- Remove a class - **Remove an attribute **(instance or class level)
- Remove a method (instance or class level) - **Remove a class**
- **Remove a method** (instance or class level)
</div>
<!-- .element: id="left" -->
<div>
```java
public class Example {
private String name;
public neverUsedMethod() {
doNothing();
}
}
```
</div>
<!-- .element: id="right" -->
---- ----
### Rename entity ### Rename entity
- Rename a local variable <div>
- Rename an attribute (instance or class level) - **Rename a variable**
- Rename a class - **Rename an attribute** (instance or class level)
- Rename a method (instance or class level) - **Rename a class**
- Change a method signature: - **Rename a method** (instance or class level)
- rename, permute, add, or remove arguments. - **Change a method signature**:
- **rename**, **permute**, **add**, or **remove** arguments.
</div>
<!-- .element: id="left" -->
<div>
```java
public class Example {
private String maeby;
public myMethod() {
String maybe;
this.call(maeby, me);
}
public call(String one, String other) {
doSomething();
}
}
```
</div>
<!-- .element: id="right" -->
---- ----
...@@ -492,6 +535,7 @@ public class AsciiStrategy { ...@@ -492,6 +535,7 @@ public class AsciiStrategy {
- Conclusion - Conclusion
---- ----
## Listen to the code
> “Let the program tell you where to refactor” - Kent Beck > “Let the program tell you where to refactor” - Kent Beck
...@@ -624,8 +668,8 @@ All these smells are incomplete or incorrect application of object-oriented prog ...@@ -624,8 +668,8 @@ All these smells are incomplete or incorrect application of object-oriented prog
#### Nest conditionals -- Fix #### Nest conditionals -- Fix
- If the conditional expression involves type test (isKindOf(), type(), getClass(), etc.), put the method on that class. - If the conditional expression involves type test (`isKindOf()`, `type()`, `getClass()`, etc.), put the method on that class.
- If the expression involves null objects (isEmpty(), isNil(), null, empty()), consider the Null Object pattern. - If the expression involves null objects (`isEmpty()`, `isNil()`, `null`, `empty()`), consider the Null Object pattern.
---- ----
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
- Simplify integration: - Simplify integration:
- If developers trust on each unit, integration errors are easier to find - If developers trust on each unit, integration errors are easier to find
---- ----
## An investment in the future ## An investment in the future
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment