// Path: src/main/java/se/bjurr/gitchangelog/api/exceptions/GitChangelogIntegrationException.java
// public class GitChangelogIntegrationException extends Exception {
// 
//   private static final long serialVersionUID = 4249741847365803709L;
// 
//   public GitChangelogIntegrationException(String message, Throwable throwable) {
//     super(message, throwable);
//   }
// 
//   public GitChangelogIntegrationException(String message) {
//     super(message);
//   }
// }


import static org.assertj.core.api.Assertions.assertThat;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import se.bjurr.gitchangelog.api.exceptions.GitChangelogIntegrationException;
package se.bjurr.gitchangelog.internal.integrations.gitlab;



public class GitLabClientTest {
  private static Logger LOG = LoggerFactory.getLogger(GitLabClientTest.class);

  private GitLabClient sut;
  private boolean disabled;

  @Before
  public void before() throws IOException {
    final String hostUrl = "https://gitlab.com/";
    String apiToken = null;
    try {
      apiToken =
          new String(
                  Files.readAllBytes(new File("/home/bjerre/gitlabapitoken.txt").toPath()),
                  StandardCharsets.UTF_8)
              .trim();
    } catch (final Exception e) {
      this.disabled = true;
      return;
    }
    this.sut = new GitLabClient(hostUrl, apiToken);
  }

  @Test
// Path: src/main/java/se/bjurr/gitchangelog/api/exceptions/GitChangelogIntegrationException.java
// public class GitChangelogIntegrationException extends Exception {
// 
//   private static final long serialVersionUID = 4249741847365803709L;
// 
//   public GitChangelogIntegrationException(String message, Throwable throwable) {
//     super(message, throwable);
//   }
// 
//   public GitChangelogIntegrationException(String message) {
//     super(message);
//   }
// }


// Path: src/test/java/se/bjurr/gitchangelog/internal/integrations/gitlab/GitLabClientTest.java
import static org.assertj.core.api.Assertions.assertThat;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import se.bjurr.gitchangelog.api.exceptions.GitChangelogIntegrationException;

package se.bjurr.gitchangelog.internal.integrations.gitlab;



public class GitLabClientTest {
  private static Logger LOG = LoggerFactory.getLogger(GitLabClientTest.class);

  private GitLabClient sut;
  private boolean disabled;

  @Before
  public void before() throws IOException {
    final String hostUrl = "https://gitlab.com/";
    String apiToken = null;
    try {
      apiToken =
          new String(
                  Files.readAllBytes(new File("/home/bjerre/gitlabapitoken.txt").toPath()),
                  StandardCharsets.UTF_8)
              .trim();
    } catch (final Exception e) {
      this.disabled = true;
      return;
    }
    this.sut = new GitLabClient(hostUrl, apiToken);
  }

  @Test
  public void testGetIssue() throws GitChangelogIntegrationException {