@@ -0,0 +1,1728 @@
+/**%0A * Copyright (C) 2016 Anthony K. Trinh%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.github.tony19.timber.loggly;%0A%0Aimport com.github.tony19.loggly.ILogglyClient;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport timber.log.Timber;%0A%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.contains;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.verify;%0A%0A/**%0A * Tests handling of percent literals%0A * https://github.com/tony19/timber-loggly/issues/8%0A */%0Apublic class TimberIntegrationTest %7B%0A%0A    private ILogglyClient client;%0A    private LogglyTree tree;%0A%0A    @Before%0A    public void setup() %7B%0A        client = mock(ILogglyClient.class);%0A        tree = new LogglyTree(client, new DummyCallback(), new JsonFormatter());%0A        Timber.plant(tree);%0A    %7D%0A%0A    @Test%0A    public void acceptsPercentInFormat() %7B%0A        final String input = %22hello %251w$rld%22;%0A        Timber.d(input);%0A        verify(client).log(contains(input), any(DummyCallback.class));%0A    %7D%0A%0A    @Test%0A    public void acceptsPercentInArgument() %7B%0A        Timber.d(%22hello %251$s%22, %22%25world%22);%0A        verify(client).log(contains(%22hello %25world%22), any(DummyCallback.class));%0A    %7D%0A%7D%0A

Add unit test for #8