Skip to content

Commit

Permalink
revert: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Sep 27, 2023
1 parent effeb28 commit 6af5b2a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.Scanner;
import java.util.concurrent.CountDownLatch;


public class BackendModeExample {
final static String DEVICE_ID = "device-id";
final static String COUNTLY_APP_KEY = "COUNTLY_APP_KEY";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.Map;
import java.util.Scanner;


public class BackendModePerformanceTests {
final static String DEVICE_ID = "device-id";
final static String COUNTLY_APP_KEY = "COUNTLY_APP_KEY";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
package ly.count.sdk.java.internal;

import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Map;
import ly.count.sdk.java.Config;
import ly.count.sdk.java.Countly;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.*;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.math.BigDecimal;
import java.util.*;

@RunWith(JUnit4.class)
public class BackendModeTests {
private ModuleBackendMode moduleBackendMode;
Expand All @@ -31,8 +25,12 @@ public static void init() {
cc.setEventQueueSizeToSend(4).enableBackendMode();

// System specific folder structure
File sdkStorageRootDirectory = TestUtils.getSdkStorageRootDirectory();
TestUtils.checkSdkStorageRootDirectoryExist(sdkStorageRootDirectory);
String[] sdkStorageRootPath = { System.getProperty("user.home"), "__COUNTLY", "java_test" };
File sdkStorageRootDirectory = new File(String.join(File.separator, sdkStorageRootPath));

if(sdkStorageRootDirectory.mkdirs()){
System.out.println("Directory creation failed");
}

Countly.init(sdkStorageRootDirectory, cc);
}
Expand Down Expand Up @@ -958,4 +956,4 @@ private int getHourFromTimeStamp(long timeStamp) {

return calendar.get(Calendar.HOUR_OF_DAY);
}
}
}

0 comments on commit 6af5b2a

Please sign in to comment.