Skip to content

Commit c3e274a

Browse files
authored
Merge pull request #22 from exceptionless/testing
Added unit tests
2 parents 848141a + c02a354 commit c3e274a

32 files changed

+275
-57
lines changed

src/main/java/com/exceptionless/exceptionlessclient/configuration/ConfigurationManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import ch.qos.logback.core.Context;
44
import com.exceptionless.exceptionlessclient.exceptions.InvalidApiKeyException;
5-
import com.exceptionless.exceptionlessclient.lastreferenceidmanager.DefaultLastReferenceIdManager;
6-
import com.exceptionless.exceptionlessclient.lastreferenceidmanager.LastReferenceIdManagerIF;
5+
import com.exceptionless.exceptionlessclient.services.DefaultLastReferenceIdManager;
6+
import com.exceptionless.exceptionlessclient.services.LastReferenceIdManagerIF;
77
import com.exceptionless.exceptionlessclient.logging.LogCapturerAppender;
88
import com.exceptionless.exceptionlessclient.logging.LogCapturerIF;
99
import com.exceptionless.exceptionlessclient.logging.NullLogCapturer;

src/main/java/com/exceptionless/exceptionlessclient/models/Event.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public Event(
5656
referenceId == null
5757
? String.format("%s-%s", Thread.currentThread().getId(), UUID.randomUUID())
5858
: referenceId;
59-
this.count = count;
59+
this.count = count == null ? 1 : count;
6060
initData(data == null ? new HashMap<>() : data, dataExclusions);
6161
}
6262

src/main/java/com/exceptionless/exceptionlessclient/models/EventPluginContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
@Value
99
@NonFinal
1010
public class EventPluginContext {
11-
private Event event;
12-
private PluginContext context;
11+
Event event;
12+
PluginContext context;
1313

1414
public static EventPluginContext from(Event event) {
1515
return EventPluginContext.builder()

src/main/java/com/exceptionless/exceptionlessclient/models/ManualStackingInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
@Value
1111
@NonFinal
1212
public class ManualStackingInfo {
13-
private String title;
14-
private Map<String, String> signatureData;
13+
String title;
14+
Map<String, String> signatureData;
1515
}

src/main/java/com/exceptionless/exceptionlessclient/models/UserDescription.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
@NonFinal
1212
@EqualsAndHashCode(callSuper = true)
1313
public class UserDescription extends Model {
14-
private String emailAddress;
15-
private String description;
14+
String emailAddress;
15+
String description;
1616
}

src/main/java/com/exceptionless/exceptionlessclient/models/UserInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
@NonFinal
1212
@EqualsAndHashCode(callSuper = true)
1313
public class UserInfo extends Model {
14-
private String identity;
15-
private String name;
14+
String identity;
15+
String name;
1616
}

src/main/java/com/exceptionless/exceptionlessclient/models/services/error/Method.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
@NonFinal
1414
@EqualsAndHashCode(callSuper = true)
1515
public class Method extends Model {
16-
private List<String> genericArguments;
17-
private List<Parameter> parameters;
18-
private boolean isSignatureTarget;
19-
private String declaringNamespace;
20-
private String declaringType;
21-
private String name;
22-
private long moduleId;
16+
List<String> genericArguments;
17+
List<Parameter> parameters;
18+
boolean isSignatureTarget;
19+
String declaringNamespace;
20+
String declaringType;
21+
String name;
22+
long moduleId;
2323
}

src/main/java/com/exceptionless/exceptionlessclient/models/services/error/Parameter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
@NonFinal
1414
@EqualsAndHashCode(callSuper = true)
1515
public class Parameter extends Model {
16-
private List<String> genericArguments;
17-
private String name;
18-
private String type;
19-
private String typeNamespace;
16+
List<String> genericArguments;
17+
String name;
18+
String type;
19+
String typeNamespace;
2020
}

src/main/java/com/exceptionless/exceptionlessclient/models/services/error/StackFrame.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@NonFinal
1111
@EqualsAndHashCode(callSuper = true)
1212
public class StackFrame extends Method {
13-
private String filename;
14-
private int lineNumber;
15-
private int column;
13+
String filename;
14+
int lineNumber;
15+
int column;
1616
}

src/main/java/com/exceptionless/exceptionlessclient/models/storage/StorageItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
@Value
99
@NonFinal
1010
public class StorageItem<X> {
11-
private long timestamp;
12-
private X value;
11+
long timestamp;
12+
X value;
1313
}

0 commit comments

Comments
 (0)