@Test public void testGetMockSofaTracer() throws Exception { SofaTracer mockSofaTracer = MockSofaTracer.getMockSofaTracer(); assertNull(mockSofaTracer.getServerReporter()); assertNull(mockSofaTracer.getClientReporter()); assertTrue(mockSofaTracer != null); }
public static SofaTracer getMockSofaTracer() { if (MOCK_SOFA_TRACER == null) { synchronized (MockSofaTracer.class) { if (MOCK_SOFA_TRACER == null) { MOCK_SOFA_TRACER = new SofaTracer.Builder(MOCK_TRACER).build(); } } } return MOCK_SOFA_TRACER; }
MockSofaTracer { public static SofaTracer getMockSofaTracer() { if (MOCK_SOFA_TRACER == null) { synchronized (MockSofaTracer.class) { if (MOCK_SOFA_TRACER == null) { MOCK_SOFA_TRACER = new SofaTracer.Builder(MOCK_TRACER).build(); } } } return MOCK_SOFA_TRACER; } }
MockSofaTracer { public static SofaTracer getMockSofaTracer() { if (MOCK_SOFA_TRACER == null) { synchronized (MockSofaTracer.class) { if (MOCK_SOFA_TRACER == null) { MOCK_SOFA_TRACER = new SofaTracer.Builder(MOCK_TRACER).build(); } } } return MOCK_SOFA_TRACER; }  }
MockSofaTracer { public static SofaTracer getMockSofaTracer() { if (MOCK_SOFA_TRACER == null) { synchronized (MockSofaTracer.class) { if (MOCK_SOFA_TRACER == null) { MOCK_SOFA_TRACER = new SofaTracer.Builder(MOCK_TRACER).build(); } } } return MOCK_SOFA_TRACER; }  static SofaTracer getMockSofaTracer(); }
MockSofaTracer { public static SofaTracer getMockSofaTracer() { if (MOCK_SOFA_TRACER == null) { synchronized (MockSofaTracer.class) { if (MOCK_SOFA_TRACER == null) { MOCK_SOFA_TRACER = new SofaTracer.Builder(MOCK_TRACER).build(); } } } return MOCK_SOFA_TRACER; }  static SofaTracer getMockSofaTracer();  }