1234567891011121314151617181920212223242526272829303132 |
- package com.wechi.adweb.bridge;
- import com.google.analytics.data.v1beta.Dimension;
- import com.google.common.base.Splitter;
- import com.google.common.base.Strings;
- import com.wechi.adweb.bridge.google.analytics.GAAdminService;
- import com.wechi.adweb.bridge.google.analytics.dto.GAReportRequestDTO;
- import org.junit.jupiter.api.Test;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.boot.test.context.SpringBootTest;
- import java.util.List;
- import java.util.Optional;
- @SpringBootTest
- class DataBridgeApplicationTests {
- @Autowired GAAdminService gaAdminService;
- @Test
- void contextLoads() throws Exception {
- // List<Dimension> dimensions =
- // Splitter.on(GAReportRequestDTO.DEFAULT_SPLITTER)
- // .splitToStream(Strings.nullToEmpty("aaa,bbb"))
- // .map(dimension -> Dimension.newBuilder().setName(dimension).build())
- // .toList();
- //
- // System.out.println(dimensions);
- }
- }
|