Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>chronicle-analytics</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<filteredResources>
<filter>
<id>1774259938437</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,4 @@ private static Path lastPath() {
CHRONICLE_ANALYTICS_LAST_FILE_NAME;
return Paths.get(fileName);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

import java.util.concurrent.atomic.AtomicReference;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.*;

class AnalyticsTest {

Expand All @@ -25,7 +24,7 @@ void sendEvent() {

@Test
void builder() {
Analytics.Builder builder= Analytics.builder(TEST_STRING, TEST_STRING);
Analytics.Builder builder = Analytics.builder(TEST_STRING, TEST_STRING);
assertNotNull(builder);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
import java.nio.file.Files;
import java.nio.file.Path;

import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.*;

class FilesUtilTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
import java.util.function.Consumer;

import static net.openhft.chronicle.analytics.internal.FilesUtil.removeLastUsedFileTimeStampSecond;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;

final class GoogleAnalytics3Test {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package net.openhft.chronicle.analytics.internal;

import org.jetbrains.annotations.NotNull;
import org.junit.Assume;
import org.junit.jupiter.api.Test;

import java.time.LocalTime;
Expand All @@ -15,8 +14,8 @@

import static net.openhft.chronicle.analytics.internal.FilesUtil.removeLastUsedFileTimeStampSecond;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assumptions.*;

//@Disabled(/* failing test https://teamcity.chronicle.software/buildConfiguration/Chronicle_BuildAll_Build/677499?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildChangesSection=true&expandBuildTestsSection=true */)
final class GoogleAnalyticsTest {

@Test
Expand Down Expand Up @@ -92,7 +91,7 @@ void attemptToSendReset() {
/* This test would fail if run concurrently from two different JVMs,
therefore it's only run if the googleAnalytics instance is not muted (update in agreement with Rob)
*/
Assume.assumeFalse(googleAnalytics.muted);
assumeFalse(googleAnalytics.muted);
for (int i = 0; i < messages; i++) {
assertTrue(googleAnalytics.attemptToSend(), "Round " + i);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.*;

final class InternalAnalyticsExceptionTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;

final class JUnitUtilTest {

Expand All @@ -17,7 +16,7 @@ void isJUnitAvailable() {

@Test
void isClassAvailableString() {
assertTrue(JUnitUtil.isClassAvailable(String.class.getName()));
assertTrue(JUnitUtil.isClassAvailable(String.class.getName()));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import java.util.Collections;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.*;

final class MuteAnalyticsTest {

Expand Down