Skip to content

Commit

Permalink
increase log level
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsocha2 committed Sep 26, 2023
1 parent 0c79d17 commit eae19af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/intTest/java/com/box/sdk/BoxFolderIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
import java.util.concurrent.Semaphore;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.IntStream;

import okhttp3.OkHttpClient;
import org.hamcrest.Matchers;
import org.junit.AfterClass;
import org.junit.Before;
Expand All @@ -75,6 +79,7 @@ public class BoxFolderIT {
@BeforeClass
public static void setup() {
setupUniqeFolder();
Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
}

@AfterClass
Expand Down Expand Up @@ -177,6 +182,7 @@ public void iterateWithOnlyTheNameField() {

@Test
public void uploadFileSucceeds() {
//here
BoxAPIConnection api = jwtApiForServiceAccount();
BoxFolder rootFolder = getUniqueFolder(api);
BoxFile uploadedFile = null;
Expand All @@ -194,6 +200,7 @@ public void uploadFileSucceeds() {

@Test
public void uploadFileUploadFileCallbackSucceeds() {
//here
BoxAPIConnection api = jwtApiForServiceAccount();
BoxFolder rootFolder = getUniqueFolder(api);
BoxFile uploadedFile = null;
Expand Down Expand Up @@ -243,6 +250,7 @@ public void uploadFileWithCreatedAndModifiedDatesSucceeds() {

@Test
public void updateFolderInfoSucceeds() {
///here
BoxAPIConnection api = jwtApiForServiceAccount();
BoxFolder rootFolder = getUniqueFolder(api);
final String originalName = "[updateFolderInfoSucceeds] Child Folder";
Expand Down Expand Up @@ -396,6 +404,7 @@ public void addCollaborationsWithAttributesSucceeds() {

@Test
public void getCollaborationsHasCorrectCollaborations() {
//here
BoxAPIConnection api = jwtApiForServiceAccount();
BoxFolder rootFolder = getUniqueFolder(api);
String folderName = "[getCollaborationsHasCorrectCollaborations] Test Folder";
Expand Down Expand Up @@ -656,6 +665,7 @@ public void uploadSessionAbortFlowSuccess() {

@Test
public void uploadLargeFileWithAttributes() throws Exception {
//here
BoxAPIConnection api = jwtApiForServiceAccount();
BoxFolder rootFolder = getUniqueFolder(api);
File file = FileUtils.generate(randomizeName("LargeFile.txt"), 21_000_000);
Expand Down Expand Up @@ -726,6 +736,7 @@ public void iterateWithOffset() {

@Test
public void iterateWithOffsetUsingNewIterator() {
Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
final String expectedName = "[iterateWithOnlyTheNameField] Child Folder";
BoxAPIConnection api = jwtApiForServiceAccount();
BoxFolder rootFolder = getUniqueFolder(api);
Expand Down
13 changes: 13 additions & 0 deletions src/intTest/java/com/box/sdk/EventStreamIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,31 @@

import static com.box.sdk.BoxApiProvider.jwtApiForServiceAccount;
import static com.box.sdk.UniqueTestFolder.randomizeName;
import static com.box.sdk.UniqueTestFolder.setupUniqeFolder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;

import okhttp3.OkHttpClient;
import org.junit.BeforeClass;
import org.junit.Test;

public class EventStreamIT {

@BeforeClass
public static void setup() {
Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
}


@Test
public void receiveEventsForFolderCreateAndFolderDelete() throws InterruptedException {
//here
final LinkedBlockingQueue<BoxEvent> observedEvents = new LinkedBlockingQueue<>();
BoxAPIConnection api = jwtApiForServiceAccount();
EventStream stream = new EventStream(api);
Expand Down

0 comments on commit eae19af

Please sign in to comment.