-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-output.log
More file actions
102 lines (99 loc) · 6.63 KB
/
Copy pathtest-output.log
File metadata and controls
102 lines (99 loc) · 6.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/opt/homebrew/Cellar/maven/3.9.11/libexec/lib/guice-5.1.0-classes.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------< com.sendly:sendly-java >-----------------------
[INFO] Building Sendly Java SDK 3.0.1
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ sendly-java ---
[INFO] skip non existing resourceDirectory /Users/sarang/Desktop/Sendly/packages/java-sdk/src/main/resources
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ sendly-java ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ sendly-java ---
[INFO] skip non existing resourceDirectory /Users/sarang/Desktop/Sendly/packages/java-sdk/src/test/resources
[INFO]
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ sendly-java ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- surefire:3.2.2:test (default-test) @ sendly-java ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.sendly.resources.MessagesBatchTest
[ERROR] Tests run: 30, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 135.3 s <<< FAILURE! -- in com.sendly.resources.MessagesBatchTest
[ERROR] com.sendly.resources.MessagesBatchTest.testSendBatch_happyPath_partialSuccess -- Time elapsed: 0.003 s <<< ERROR!
com.sendly.exceptions.ValidationException: Invalid phone number format. Use E.164 format (e.g., +15551234567)
at com.sendly.resources.Messages.validatePhone(Messages.java:296)
at com.sendly.resources.Messages.sendBatch(Messages.java:245)
at com.sendly.resources.MessagesBatchTest.testSendBatch_happyPath_partialSuccess(MessagesBatchTest.java:95)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
[ERROR] com.sendly.resources.MessagesBatchTest.testSendBatch_happyPath_allSucceed -- Time elapsed: 0.005 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183)
at com.sendly.resources.MessagesBatchTest.testSendBatch_happyPath_allSucceed(MessagesBatchTest.java:73)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
[INFO] Running com.sendly.resources.MessagesTest
[INFO] Tests run: 37, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 165.2 s -- in com.sendly.resources.MessagesTest
[INFO] Running com.sendly.resources.MessagesScheduleTest
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 165.1 s -- in com.sendly.resources.MessagesScheduleTest
[INFO] Running com.sendly.SendlyTest
[ERROR] Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 66.09 s <<< FAILURE! -- in com.sendly.SendlyTest
[ERROR] com.sendly.SendlyTest.testClientSetsCorrectHeaders -- Time elapsed: 0.004 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <application/json> but was: <application/json; charset=utf-8>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at com.sendly.SendlyTest.testClientSetsCorrectHeaders(SendlyTest.java:100)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
[INFO] Running com.sendly.exceptions.ExceptionsTest
[INFO] Tests run: 38, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 s -- in com.sendly.exceptions.ExceptionsTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] SendlyTest.testClientSetsCorrectHeaders:100 expected: <application/json> but was: <application/json; charset=utf-8>
[ERROR] MessagesBatchTest.testSendBatch_happyPath_allSucceed:73 expected: <true> but was: <false>
[ERROR] Errors:
[ERROR] MessagesBatchTest.testSendBatch_happyPath_partialSuccess:95 » Validation Invalid phone number format. Use E.164 format (e.g., +15551234567)
[INFO]
[ERROR] Tests run: 157, Failures: 2, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:52 min
[INFO] Finished at: 2025-12-16T13:54:30Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project sendly-java: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/sarang/Desktop/Sendly/packages/java-sdk/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException