// Path: library/src/main/java/jp/alessandro/android/iab/logger/SystemLogger.java
// public class SystemLogger implements Logger {
// 
//     @Override
//     public void d(String tag, String msg) {
//         Log.d(tag, msg);
//     }
// 
//     @Override
//     public void e(String tag, String msg) {
//         Log.e(tag, msg);
//     }
// 
//     @Override
//     public void e(String tag, String msg, Exception e) {
//         Log.e(tag, msg, e);
//     }
// 
//     @Override
//     public void i(String tag, String msg) {
//         Log.i(tag, msg);
//     }
// 
//     @Override
//     public void v(String tag, String msg) {
//         Log.v(tag, msg);
//     }
// 
//     @Override
//     public void w(String tag, String msg) {
//         Log.w(tag, msg);
//     }
// }


import jp.alessandro.android.iab.logger.SystemLogger;
import static org.mockito.Mockito.verify;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Spy;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import jp.alessandro.android.iab.logger.CustomLogger;
import jp.alessandro.android.iab.logger.DiscardLogger;
import jp.alessandro.android.iab.logger.Logger;
/*
 * Copyright (C) 2016 Alessandro Yuichi Okimoto
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * Contact email: alessandro@alessandro.jp
 */

package jp.alessandro.android.iab;




/**
 * Created by Alessandro Yuichi Okimoto on 2017/02/26.
 */

@RunWith(RobolectricTestRunner.class)
@Config(manifest = Config.NONE, constants = BuildConfig.class)
public class LoggerTest {

    @Rule
    public MockitoRule mMockitoRule = MockitoJUnit.rule();

    @Spy
    CustomLogger mCustomLogger;
    @Spy
    DiscardLogger mDiscardLogger;
    @Spy
// Path: library/src/main/java/jp/alessandro/android/iab/logger/SystemLogger.java
// public class SystemLogger implements Logger {
// 
//     @Override
//     public void d(String tag, String msg) {
//         Log.d(tag, msg);
//     }
// 
//     @Override
//     public void e(String tag, String msg) {
//         Log.e(tag, msg);
//     }
// 
//     @Override
//     public void e(String tag, String msg, Exception e) {
//         Log.e(tag, msg, e);
//     }
// 
//     @Override
//     public void i(String tag, String msg) {
//         Log.i(tag, msg);
//     }
// 
//     @Override
//     public void v(String tag, String msg) {
//         Log.v(tag, msg);
//     }
// 
//     @Override
//     public void w(String tag, String msg) {
//         Log.w(tag, msg);
//     }
// }


// Path: library/src/test/java/jp/alessandro/android/iab/LoggerTest.java
import jp.alessandro.android.iab.logger.SystemLogger;
import static org.mockito.Mockito.verify;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Spy;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import jp.alessandro.android.iab.logger.CustomLogger;
import jp.alessandro.android.iab.logger.DiscardLogger;
import jp.alessandro.android.iab.logger.Logger;

/*
 * Copyright (C) 2016 Alessandro Yuichi Okimoto
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * Contact email: alessandro@alessandro.jp
 */

package jp.alessandro.android.iab;




/**
 * Created by Alessandro Yuichi Okimoto on 2017/02/26.
 */

@RunWith(RobolectricTestRunner.class)
@Config(manifest = Config.NONE, constants = BuildConfig.class)
public class LoggerTest {

    @Rule
    public MockitoRule mMockitoRule = MockitoJUnit.rule();

    @Spy
    CustomLogger mCustomLogger;
    @Spy
    DiscardLogger mDiscardLogger;
    @Spy
    SystemLogger mSystemLogger;