Skip to content

Commit

Permalink
changed jetty version, updated tests (#62)
Browse files Browse the repository at this point in the history
* changed jetty version, updated tests

* upgraded javadoc version
  • Loading branch information
tamir-michaeli authored Aug 3, 2022
1 parent e511988 commit eeef82c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This appender uses [BigQueue](https://github.com/bulldog2011/bigqueue) implement
If you use Gradle, add the dependency to your project as follows:

```java
implementation 'io.logz.sender:logzio-java-sender:1.1.4'
implementation 'io.logz.sender:logzio-java-sender:1.1.5'
```

### Parameters
Expand Down
10 changes: 5 additions & 5 deletions logzio-sender/src/test/java/io/logz/sender/LogzioSenderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
Expand Down Expand Up @@ -396,7 +396,7 @@ public void checkExceedingMaxSizeJsonLogWithCut() throws LogzioParameterErrorExc
String loggerName = "checkExceedingMaxSizeJsonLogWithCutName";
int drainTimeout = 2;

String message = Files.readString(Path.of(EXCEEDING_MESSAGE_FILE_PATH));
String message = new String(Files.readAllBytes(Paths.get(EXCEEDING_MESSAGE_FILE_PATH)), StandardCharsets.UTF_8);
JsonObject log = createJsonMessage(loggerName, message);

int logSize = log.toString().getBytes(StandardCharsets.UTF_8).length;
Expand All @@ -416,7 +416,7 @@ public void checkExceedingMaxSizeBytesLogWithCut() throws LogzioParameterErrorEx
String loggerName = "checkExceedingMaxSizeBytesLogWithCutName";
int drainTimeout = 2;

String message = Files.readString(Path.of(EXCEEDING_MESSAGE_FILE_PATH));
String message = new String(Files.readAllBytes(Paths.get(EXCEEDING_MESSAGE_FILE_PATH)), StandardCharsets.UTF_8);
JsonObject log = createJsonMessage(loggerName, message);

int logSize = log.toString().getBytes(StandardCharsets.UTF_8).length;
Expand All @@ -437,7 +437,7 @@ public void checkExceedingMaxSizeJsonLogWithDrop() throws LogzioParameterErrorEx
String loggerName = "checkExceedingMaxSizeJsonLogWithDropName";
int drainTimeout = 2;

String message = Files.readString(Path.of(EXCEEDING_MESSAGE_FILE_PATH));
String message = new String(Files.readAllBytes(Paths.get(EXCEEDING_MESSAGE_FILE_PATH)), StandardCharsets.UTF_8);
JsonObject log = createJsonMessage(loggerName, message);

int logSize = log.toString().getBytes(StandardCharsets.UTF_8).length;
Expand All @@ -456,7 +456,7 @@ public void checkExceedingMaxSizeBytesLogWithDrop() throws LogzioParameterErrorE
String loggerName = "checkExceedingMaxSizeBytesLogWithDropName";
int drainTimeout = 2;

String message = Files.readString(Path.of(EXCEEDING_MESSAGE_FILE_PATH));
String message = new String(Files.readAllBytes(Paths.get(EXCEEDING_MESSAGE_FILE_PATH)), StandardCharsets.UTF_8);
JsonObject log = createJsonMessage(loggerName, message);

int logSize = log.toString().getBytes(StandardCharsets.UTF_8).length;
Expand Down
7 changes: 2 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -75,9 +75,6 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>marina@logz.io</keyname>
</configuration>
</execution>
</executions>
</plugin>
Expand Down Expand Up @@ -125,7 +122,7 @@
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>10.0.10</version>
<version>9.4.48.v20220622</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down

0 comments on commit eeef82c

Please sign in to comment.