DataBridgeApplicationTests.java 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.wechi.adweb.bridge;
  2. import com.google.analytics.data.v1beta.Dimension;
  3. import com.google.common.base.Splitter;
  4. import com.google.common.base.Strings;
  5. import com.wechi.adweb.bridge.google.analytics.GAAdminService;
  6. import com.wechi.adweb.bridge.google.analytics.dto.GAReportRequestDTO;
  7. import org.junit.jupiter.api.Test;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.boot.test.context.SpringBootTest;
  10. import java.util.List;
  11. import java.util.Optional;
  12. @SpringBootTest
  13. class DataBridgeApplicationTests {
  14. @Autowired GAAdminService gaAdminService;
  15. @Test
  16. void contextLoads() throws Exception {
  17. // List<Dimension> dimensions =
  18. // Splitter.on(GAReportRequestDTO.DEFAULT_SPLITTER)
  19. // .splitToStream(Strings.nullToEmpty("aaa,bbb"))
  20. // .map(dimension -> Dimension.newBuilder().setName(dimension).build())
  21. // .toList();
  22. //
  23. // System.out.println(dimensions);
  24. }
  25. }