mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
16 lines
363 B
Java
16 lines
363 B
Java
|
|
package sonia.scm.lifecycle;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates restart events for testing.
|
||
|
|
* This is required, because the constructor of {@link RestartEvent} is package private.
|
||
|
|
*/
|
||
|
|
public final class RestartEventFactory {
|
||
|
|
|
||
|
|
private RestartEventFactory(){}
|
||
|
|
|
||
|
|
public static RestartEvent create(Class<?> cause, String reason) {
|
||
|
|
return new RestartEvent(cause, reason);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|