\CodePro Analytix Evaluation\src\com\instantiations\example\customer\CustomerFactory.java |
Violations |
Source |
1 | ![]() |
package com.instantiations.example.customer; |
2 | ||
3 | ![]() |
/** |
4 | * The class <code>CustomerFactory</code> is a factory class used to create | |
5 | * instances of the class {@link Cusomer} for testing purposes. | |
6 | * @author Chris Cummings | |
7 | */ | |
8 | ![]() |
public class CustomerFactory |
9 | { | |
10 | ![]() |
public static Customer johnDoe() |
11 | { | |
12 | ![]() ![]() |
return new Customer("John Doe", "12345"); |
13 | } | |
14 | ||
15 | ![]() |
public static Customer janeSmith() |
16 | { | |
17 | ![]() ![]() |
return new Customer("Jane Smith", "98765"); |
18 | } | |
19 | } |