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
----
......
This diff is collapsed.
......@@ -233,31 +233,74 @@ public class ConcreteB extends IntermediateClass {}
### Add entity
- Add an attribute (instance or class level)
- Add a class
- Add a method (instance or class level)
<div>
- **Add an attribute** (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)
<!-- .element: style="position:relative; width:500px;" -->
</div>
<!-- .element: id="right" -->
----
### Remove entity
- Remove an attribute (instance or class level)
- Remove a class
- Remove a method (instance or class level)
<div>
- **Remove an attribute **(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 a local variable
- Rename an attribute (instance or class level)
- Rename a class
- Rename a method (instance or class level)
- Change a method signature:
- rename, permute, add, or remove arguments.
<div>
- **Rename a variable**
- **Rename an attribute** (instance or class level)
- **Rename a class**
- **Rename a method** (instance or class level)
- **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 {
- Conclusion
----
## Listen to the code
> “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
#### Nest conditionals -- Fix
- 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 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.
----
......
......@@ -97,7 +97,7 @@
- Simplify integration:
- If developers trust on each unit, integration errors are easier to find
----
## An investment in the future
......
Markdown is supported
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