repo_name stringlengths 7 104 | file_path stringlengths 13 198 | context stringlengths 67 7.15k | import_statement stringlengths 16 4.43k | code stringlengths 40 6.98k | prompt stringlengths 227 8.27k | next_line stringlengths 8 795 |
|---|---|---|---|---|---|---|
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/wrappers/FutureCacheWrapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | import com.mobilejazz.cacheio.FutureCache;
import com.mobilejazz.cacheio.RxCache;
import rx.Single;
import java.util.*;
import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | @Override public Future<V> get(K key) {
return future(config.delegate.get(key));
}
@Override public Future<V> put(K key, V value, long expiry, TimeUnit unit) {
return future(config.delegate.put(key, value, expiry, unit));
}
@Override public Future<K> remove(K key) {
return future(config.delegate... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | private RxCache<K, V> delegate; |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/wrappers/FutureCacheWrapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | import com.mobilejazz.cacheio.FutureCache;
import com.mobilejazz.cacheio.RxCache;
import rx.Single;
import java.util.*;
import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; |
private Class<K> keyType;
private Class<V> valueType;
private Builder() {
}
private Builder(Builder<K, V> proto) {
this.delegate = proto.delegate;
this.keyType = proto.keyType;
this.valueType = proto.valueType;
}
public Builder<K, V> setDelegate(RxCache<K, V> delegate) ... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | checkArgument(keyType, "Key type cannot be null"); |
mobilejazz/CacheIO | cacheio-serializers/cacheio-gson-serializer/src/test/java/com/mobilejazz/cacheio/serializers/gson/GsonValueMapperTest.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-serializers/cache... | import com.google.gson.Gson;
import com.mobilejazz.cacheio.BuildConfig;
import com.mobilejazz.cacheio.mappers.ValueMapper;
import com.mobilejazz.cacheio.serializers.gson.model.UserTestModel;
import org.assertj.core.api.Assertions;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import o... | package com.mobilejazz.cacheio.serializers.gson;
@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class, sdk = 21, manifest = Config.NONE)
public class GsonValueMapperTest {
| // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-serializers/cache... | private ValueMapper valueMapper; |
mobilejazz/CacheIO | cacheio-serializers/cacheio-gson-serializer/src/test/java/com/mobilejazz/cacheio/serializers/gson/GsonValueMapperTest.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-serializers/cache... | import com.google.gson.Gson;
import com.mobilejazz.cacheio.BuildConfig;
import com.mobilejazz.cacheio.mappers.ValueMapper;
import com.mobilejazz.cacheio.serializers.gson.model.UserTestModel;
import org.assertj.core.api.Assertions;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import o... | package com.mobilejazz.cacheio.serializers.gson;
@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class, sdk = 21, manifest = Config.NONE)
public class GsonValueMapperTest {
private ValueMapper valueMapper;
@Before public void setUp() throws Exception {
Gson gson = new Gson();
valu... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-serializers/cache... | UserTestModel userTestModel = fakeUserTestObject(); |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/key/LongKeyMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | import com.mobilejazz.cacheio.mappers.KeyMapper;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | package com.mobilejazz.cacheio.mappers.key;
public class LongKeyMapper implements KeyMapper<Long> {
@Override public String toString(Long model) { | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | checkArgument(model, "key cannot be null"); |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/key/FloatKeyMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | import com.mobilejazz.cacheio.mappers.KeyMapper;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | checkArgument(model, "key cannot be null"); |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/value/DefaultValueMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-core/src/main/jav... | import com.mobilejazz.cacheio.mappers.ValueMapper;
import com.mobilejazz.cacheio.exceptions.SerializerException;
import java.io.*;
import java.util.*;
import java.util.concurrent.*; | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/ValueMapper.java
// public interface ValueMapper {
//
// void write(Object value, OutputStream out) throws SerializerException;
//
// <T> T read(Class<T> type, InputStream in) throws SerializerException;
// }
//
// Path: cacheio-core/src/main/jav... | @Override public void write(Object value, OutputStream out) throws SerializerException { |
mobilejazz/CacheIO | cacheio-repository/src/androidTest/java/com/mobilejazz/cacheio/RxRepositoryTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | import java.util.concurrent.*;
import static org.assertj.core.api.Assertions.assertThat;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.mobilejazz.cacheio.mappers.DefaultQueryMapper;
import com.mobilejazz.cache... | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | .setKeyMapper(PaginatedQuery.class, new PaginatedQueryMapper()) |
mobilejazz/CacheIO | cacheio-repository/src/androidTest/java/com/mobilejazz/cacheio/RxRepositoryTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | import java.util.concurrent.*;
import static org.assertj.core.api.Assertions.assertThat;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.mobilejazz.cacheio.mappers.DefaultQueryMapper;
import com.mobilejazz.cache... | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | .setKeyMapper(PaginatedQuery.class, new PaginatedQueryMapper()) |
mobilejazz/CacheIO | cacheio-repository/src/androidTest/java/com/mobilejazz/cacheio/RxRepositoryTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | import java.util.concurrent.*;
import static org.assertj.core.api.Assertions.assertThat;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.mobilejazz.cacheio.mappers.DefaultQueryMapper;
import com.mobilejazz.cache... | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | .setKeyMapper(DefaultQuery.class, new DefaultQueryMapper()) |
mobilejazz/CacheIO | cacheio-repository/src/androidTest/java/com/mobilejazz/cacheio/RxRepositoryTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | import java.util.concurrent.*;
import static org.assertj.core.api.Assertions.assertThat;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.mobilejazz.cacheio.mappers.DefaultQueryMapper;
import com.mobilejazz.cache... | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | .setKeyMapper(DefaultQuery.class, new DefaultQueryMapper()) |
mobilejazz/CacheIO | cacheio-repository/src/androidTest/java/com/mobilejazz/cacheio/RxRepositoryTests.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | import java.util.concurrent.*;
import static org.assertj.core.api.Assertions.assertThat;
import android.support.annotation.NonNull;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.mobilejazz.cacheio.mappers.DefaultQueryMapper;
import com.mobilejazz.cache... | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java
// public class DefaultQueryMapper implements KeyMapper<DefaultQuery> {
//
// @Override public String toString(DefaultQuery model) {
// checkArgument(model, "DefaultQuery == null");
// return model.getId();
// ... | new StringKeyedRxRepository.Builder<TestUser, DefaultQuery>().setCache(null) |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/key/DoubleKeyMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | import com.mobilejazz.cacheio.mappers.KeyMapper;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | checkArgument(model, "key cannot be null"); |
mobilejazz/CacheIO | cacheio-core/src/androidTest/java/com/mobilejazz/cacheio/CacheIOTests.java | // Path: cacheio-core/src/androidTest/java/com/mobilejazz/cacheio/model/DummyUser.java
// public class DummyUser {
//
// private int id;
// private String name;
//
// private DummyUser(int id, String name) {
// this.id = id;
// this.name = name;
// }
//
// public int getId() {
// return id;
// ... | import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.mobilejazz.cacheio.model.DummyUser;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.*;
import java.util.concurrent.*;
import static org.assertj.core.api.Ass... | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-core/src/androidTest/java/com/mobilejazz/cacheio/model/DummyUser.java
// public class DummyUser {
//
// private int id;
// private String name;
//
// private DummyUser(int id, String name) {
// this.id = id;
// this.name = name;
// }
//
// public int getId() {
// return id;
// ... | SyncCache<String, DummyUser> syncCache = givenADummyUserSyncCache(); |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/wrappers/SyncCacheWrapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | import com.mobilejazz.cacheio.FutureCache;
import com.mobilejazz.cacheio.SyncCache;
import java.util.*;
import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | @Override public V get(K key) {
return blocking(config.delegate.get(key));
}
@Override public V put(K key, V value, long expiry, TimeUnit unit) {
return blocking(config.delegate.put(key, value, expiry, unit));
}
@Override public K remove(K key) {
return blocking(config.delegate.remove(key));
}... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | private FutureCache<K, V> delegate; |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/wrappers/SyncCacheWrapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | import com.mobilejazz.cacheio.FutureCache;
import com.mobilejazz.cacheio.SyncCache;
import java.util.*;
import java.util.concurrent.*;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; |
private Class<K> keyType;
private Class<V> valueType;
private Builder() {
}
private Builder(Builder<K, V> proto) {
this.delegate = proto.delegate;
this.keyType = proto.keyType;
this.valueType = proto.valueType;
}
public Builder<K, V> setDelegate(FutureCache<K, V> delega... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | checkArgument(keyType, "Key type cannot be null"); |
mobilejazz/CacheIO | cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/PaginatedQueryMapper.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/PaginatedQuery.java
// public class PaginatedQuery implements Query {
//
// private final String id;
// private final int offset;
// private final int limit;
//
// public PaginatedQuery(String id, int offset, int limit) {
// this.id = ... | import com.mobilejazz.cacheio.query.PaginatedQuery;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/PaginatedQuery.java
// public class PaginatedQuery implements Query {
//
// private final String id;
// private final int offset;
// private final int limit;
//
// public PaginatedQuery(String id, int offset, int limit) {
// this.id = ... | checkArgument(model, "PaginatedQuery == null"); |
mobilejazz/CacheIO | cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/key/ShortKeyMapper.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | import com.mobilejazz.cacheio.mappers.KeyMapper;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/mappers/KeyMapper.java
// public interface KeyMapper<T> {
//
// String toString(T model);
//
// T fromString(String str);
// }
//
// Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/helper/Preconditions.java
// public static <T> T checkArgument(T ... | checkArgument(model, "key cannot be null"); |
mobilejazz/CacheIO | cacheio-repository/src/main/java/com/mobilejazz/cacheio/mappers/DefaultQueryMapper.java | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/DefaultQuery.java
// public class DefaultQuery implements Query {
//
// private final String id;
//
// public DefaultQuery(String id) {
// this.id = id;
// }
//
// @Override public String getId() {
// return this.id;
// }
//
//... | import com.mobilejazz.cacheio.query.DefaultQuery;
import static com.mobilejazz.cacheio.helper.Preconditions.checkArgument; | /*
* Copyright (C) 2016 Mobile Jazz
*
* 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 o... | // Path: cacheio-repository/src/main/java/com/mobilejazz/cacheio/query/DefaultQuery.java
// public class DefaultQuery implements Query {
//
// private final String id;
//
// public DefaultQuery(String id) {
// this.id = id;
// }
//
// @Override public String getId() {
// return this.id;
// }
//
//... | checkArgument(model, "DefaultQuery == null"); |
mobilejazz/CacheIO | cacheio-core/src/test/java/com/mobilejazz/cacheio/wrappers/SyncCacheWrapperTest.java | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | import com.mobilejazz.cacheio.FutureCache;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import rx.Single;
import rx.SingleSubscriber;
import java.util.*;
import java.util.concurrent.*;
import static org.assertj.c... | package com.mobilejazz.cacheio.wrappers;
@SuppressWarnings("unchecked")
@RunWith(MockitoJUnitRunner.class)
public class SyncCacheWrapperTest {
@Mock | // Path: cacheio-core/src/main/java/com/mobilejazz/cacheio/FutureCache.java
// public interface FutureCache<K, V> {
//
// Future<V> get(K key);
//
// Future<V> put(K key, V value, long expiry, TimeUnit unit);
//
// Future<K> remove(K key);
//
// Future<Map<K, V>> getAll(Collection<K> keys);
//
// Future<... | private FutureCache<String, String> delegate; |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.TextView;
import o... | package com.vanniktech.espresso.core.utils;
public final class TextViewDrawableMatcher extends BoundedMatcher<View, TextView> {
/**
* Matches that the given drawable is displayed as the left drawable.
*
* <p>Example usage:</p>
* <code>onView(withId(R.id.view)).check(matches(withTextViewDrawableLeft(R.c... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | return new TextViewDrawableMatcher(NO_DRAWABLE, DRAWABLE_LEFT); |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.TextView;
import o... | * Matches that the given drawable is displayed as the relative bottom drawable.
*
* <p>Example usage:</p>
* <code>onView(withId(R.id.view)).check(matches(withTextViewDrawableRelativeBottom(R.color.blue)));</code>
*/
@CheckResult @TargetApi(JELLY_BEAN_MR1) public static TextViewDrawableMatcher withTextV... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | return drawableMatches(textView, type.getDrawable(textView), expectedId); |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.TextView;
import o... | }
private final int expectedId;
private final Type type;
private TextViewDrawableMatcher(final int expectedId, final Type type) {
super(TextView.class);
this.expectedId = expectedId;
this.type = type;
}
@Override protected boolean matchesSafely(final TextView textView) {
return drawableM... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | DRAWABLE_LEFT(INDEX_LEFT, false, "left"), |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.TextView;
import o... | private final int expectedId;
private final Type type;
private TextViewDrawableMatcher(final int expectedId, final Type type) {
super(TextView.class);
this.expectedId = expectedId;
this.type = type;
}
@Override protected boolean matchesSafely(final TextView textView) {
return drawableMatche... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | DRAWABLE_TOP(INDEX_TOP, false, "top"), |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.TextView;
import o... |
private TextViewDrawableMatcher(final int expectedId, final Type type) {
super(TextView.class);
this.expectedId = expectedId;
this.type = type;
}
@Override protected boolean matchesSafely(final TextView textView) {
return drawableMatches(textView, type.getDrawable(textView), expectedId);
}
... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | DRAWABLE_RIGHT(INDEX_RIGHT, false, "right"), |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.TextView;
import o... | super(TextView.class);
this.expectedId = expectedId;
this.type = type;
}
@Override protected boolean matchesSafely(final TextView textView) {
return drawableMatches(textView, type.getDrawable(textView), expectedId);
}
@Override public void describeTo(final Description description) {
if (e... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_BOTTOM = 3;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int INDEX_LEFT = 0;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/es... | DRAWABLE_BOTTOM(INDEX_BOTTOM, false, "bottom"), |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ViewIndexMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ViewIndexMatcher.java
// @CheckResult public static Matcher<View> withIndex(final Matcher<View> matcher, final int index) {
// return new ViewIndexMatcher(matcher, index);
// }
| import androidx.test.espresso.NoMatchingViewException;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import org.hamcrest.Matchers;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
impo... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class ViewIndexMatcherTest {
@Rule public final ActivityTestRule<ViewIndexMatcherActivity> activityTestRule = new ActivityTestRule<>(ViewIndexMatcherActivity.class);
@Test public void index() { | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ViewIndexMatcher.java
// @CheckResult public static Matcher<View> withIndex(final Matcher<View> matcher, final int index) {
// return new ViewIndexMatcher(matcher, index);
// }
// Path: espresso-core-utils/src/androidTest/java/com/vannikt... | onView(withIndex(withText("Test"), 0)).check(matches(withTagValue(Matchers.<Object>equalTo(1)))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/DrawableMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
// return new DrawableMatcher(resourceId);
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core... | import androidx.annotation.DrawableRes;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class DrawableMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<DrawableMatcherActivity> activityTestRule = new ActivityTestRule<>(DrawableMat... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
// return new DrawableMatcher(resourceId);
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core... | onView(withId(VIEW_ID)).check(matches(withNoDrawable())); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/DrawableMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
// return new DrawableMatcher(resourceId);
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core... | import androidx.annotation.DrawableRes;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class DrawableMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<DrawableMatcherActivity> activityTestRule = new ActivityTestRule<>(DrawableMat... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
// return new DrawableMatcher(resourceId);
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core... | onView(withId(VIEW_ID)).check(matches(withNoDrawable())); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/DrawableMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
// return new DrawableMatcher(resourceId);
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core... | import androidx.annotation.DrawableRes;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class DrawableMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<DrawableMatcherActivity> activityTestRule = new ActivityTestRule<>(DrawableMat... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java
// @CheckResult public static DrawableMatcher withDrawable(@DrawableRes final int resourceId) {
// return new DrawableMatcher(resourceId);
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core... | onView(withId(VIEW_ID)).check(matches(withDrawable(R.drawable.android))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/TextColorMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextColorMatcher.java
// @CheckResult public static TextColorMatcher withTextColor(@ColorInt final int color) {
// return new TextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/esp... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class TextColorMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<TextColorMatcherActivity> activityTestRule = new ActivityTestRule<>(TextColor... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextColorMatcher.java
// @CheckResult public static TextColorMatcher withTextColor(@ColorInt final int color) {
// return new TextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/esp... | onView(withId(VIEW_ID)).check(matches(withTextColorRes(R.color.red))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/TextColorMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextColorMatcher.java
// @CheckResult public static TextColorMatcher withTextColor(@ColorInt final int color) {
// return new TextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/esp... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class TextColorMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<TextColorMatcherActivity> activityTestRule = new ActivityTestRule<>(TextColor... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextColorMatcher.java
// @CheckResult public static TextColorMatcher withTextColor(@ColorInt final int color) {
// return new TextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/esp... | onView(withId(VIEW_ID)).check(matches(withTextColorRes(R.color.red))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/TextColorMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextColorMatcher.java
// @CheckResult public static TextColorMatcher withTextColor(@ColorInt final int color) {
// return new TextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/esp... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class TextColorMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<TextColorMatcherActivity> activityTestRule = new ActivityTestRule<>(TextColor... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextColorMatcher.java
// @CheckResult public static TextColorMatcher withTextColor(@ColorInt final int color) {
// return new TextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/esp... | onView(withId(VIEW_ID)).check(matches(withTextColor(RED))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/CurrentItemMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/CurrentItemMatcher.java
// @CheckResult public static CurrentItemMatcher withCurrentItem(final int currentItem) {
// return new CurrentItemMatcher(currentItem);
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espre... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
im... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class CurrentItemMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<CurrentItemMatcherActivity> activityTestRule = new ActivityTestRule<>(Curre... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/CurrentItemMatcher.java
// @CheckResult public static CurrentItemMatcher withCurrentItem(final int currentItem) {
// return new CurrentItemMatcher(currentItem);
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espre... | onView(withId(VIEW_ID)).check(matches(withCurrentItem(0))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/CurrentItemMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/CurrentItemMatcher.java
// @CheckResult public static CurrentItemMatcher withCurrentItem(final int currentItem) {
// return new CurrentItemMatcher(currentItem);
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espre... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
im... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class CurrentItemMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<CurrentItemMatcherActivity> activityTestRule = new ActivityTestRule<>(Curre... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/CurrentItemMatcher.java
// @CheckResult public static CurrentItemMatcher withCurrentItem(final int currentItem) {
// return new CurrentItemMatcher(currentItem);
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espre... | onView(withId(VIEW_ID)).check(matches(withCurrentItem(0))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/HintTextColorMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
// return new HintTextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/co... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class HintTextColorMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<HintTextColorMatcherActivity> activityTestRule = new ActivityTestRule<>(H... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
// return new HintTextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/co... | onView(withId(VIEW_ID)).check(matches(withHintTextColorRes(R.color.red))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/HintTextColorMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
// return new HintTextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/co... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class HintTextColorMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<HintTextColorMatcherActivity> activityTestRule = new ActivityTestRule<>(H... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
// return new HintTextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/co... | onView(withId(VIEW_ID)).check(matches(withHintTextColorRes(R.color.red))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/HintTextColorMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
// return new HintTextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/co... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class HintTextColorMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<HintTextColorMatcherActivity> activityTestRule = new ActivityTestRule<>(H... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/HintTextColorMatcher.java
// @CheckResult public static HintTextColorMatcher withHintTextColor(@ColorInt final int color) {
// return new HintTextColorMatcher(ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/src/main/java/co... | onView(withId(VIEW_ID)).check(matches(withHintTextColor(RED))); |
vanniktech/espresso-utils | espresso-core-utils/src/test/java/com/vanniktech/espresso/core/utils/UtilsTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// @NonNull static <T> T checkNotNull(@Nullable final T reference, final String message) {
// if (reference == null) {
// throw new IllegalArgumentException(message);
// }
//
// return reference;
// }
| import com.pushtorefresh.private_constructor_checker.PrivateConstructorChecker;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static com.vanniktech.espresso.core.utils.Utils.checkNotNull;
import static org.assertj.core.api.Java6Assertions.assertThat; | package com.vanniktech.espresso.core.utils;
public final class UtilsTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Test public void constructorShouldBePrivate() {
PrivateConstructorChecker.forClass(Utils.class)
.expectedTypeOfException(AssertionError.class... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// @NonNull static <T> T checkNotNull(@Nullable final T reference, final String message) {
// if (reference == null) {
// throw new IllegalArgumentException(message);
// }
//
// return reference;
// }
// Path: espresso... | assertThat(checkNotNull(5, "should never be")).isEqualTo(5); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressMatcherTest.java | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
im... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class ProgressMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<ProgressBarActivity> activityTestRule = new ActivityTestRule<>(ProgressBarActi... | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | onView(withId(VIEW_ID)).check(matches(withProgress(1))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressMatcherTest.java | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
im... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class ProgressMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<ProgressBarActivity> activityTestRule = new ActivityTestRule<>(ProgressBarActi... | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | onView(withId(VIEW_ID)).check(matches(withProgress(1))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AppendTextActionTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AppendTextAction.java
// @CheckResult public static ViewAction appendText(final String text) {
// return actionWithAssertions(new AppendTextAction(text));
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/co... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static andr... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class AppendTextActionTest {
@Rule public final ActivityTestRule<AppendTextActionActivity> activityTestRule = new ActivityTestRule<>(AppendTextActionActivity.class);
@Test public void appendingText() { | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AppendTextAction.java
// @CheckResult public static ViewAction appendText(final String text) {
// return actionWithAssertions(new AppendTextAction(text));
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/co... | onView(withId(VIEW_ID)).check(matches(withText("Test"))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AppendTextActionTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AppendTextAction.java
// @CheckResult public static ViewAction appendText(final String text) {
// return actionWithAssertions(new AppendTextAction(text));
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/co... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static andr... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class AppendTextActionTest {
@Rule public final ActivityTestRule<AppendTextActionActivity> activityTestRule = new ActivityTestRule<>(AppendTextActionActivity.class);
@Test public void appendingText() {
onView(withId(VIEW_... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AppendTextAction.java
// @CheckResult public static ViewAction appendText(final String text) {
// return actionWithAssertions(new AppendTextAction(text));
// }
//
// Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/co... | onView(withId(VIEW_ID)).perform(appendText("Something")); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/SetProgressActionTest.java | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static andr... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class SetProgressActionTest {
@Rule public final ActivityTestRule<ProgressBarActivity> activityTestRule = new ActivityTestRule<>(ProgressBarActivity.class);
@Test public void settingProgress() { | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | onView(withId(VIEW_ID)).check(matches(withProgress(1))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/SetProgressActionTest.java | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static andr... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class SetProgressActionTest {
@Rule public final ActivityTestRule<ProgressBarActivity> activityTestRule = new ActivityTestRule<>(ProgressBarActivity.class);
@Test public void settingProgress() { | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | onView(withId(VIEW_ID)).check(matches(withProgress(1))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/SetProgressActionTest.java | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static andr... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class SetProgressActionTest {
@Rule public final ActivityTestRule<ProgressBarActivity> activityTestRule = new ActivityTestRule<>(ProgressBarActivity.class);
@Test public void settingProgress() {
onView(withId(VIEW_ID)).ch... | // Path: espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/ProgressBarActivity.java
// static final int VIEW_ID = 1234;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ProgressMatcher.java
// @CheckResult public static ProgressMatcher withProgress(final int pr... | onView(withId(VIEW_ID)).perform(setProgress(95)); |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int NO_DRAWABLE = -1;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static boolean drawableMatches(final View view, final Drawable drawable, @DrawableRes final int e... | import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.ImageView;
import org.hamcrest.Description;
import static com.vanniktech.espresso.core.utils.Ut... | package com.vanniktech.espresso.core.utils;
public final class DrawableMatcher extends BoundedMatcher<View, ImageView> {
/**
* Matches that the given view has the expected drawable.
*
* <p>Example usage:</p>
* <code>onView(withId(R.id.view)).check(matches(withDrawable(R.drawable.android)));</code>
*... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int NO_DRAWABLE = -1;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static boolean drawableMatches(final View view, final Drawable drawable, @DrawableRes final int e... | return new DrawableMatcher(NO_DRAWABLE); |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/DrawableMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int NO_DRAWABLE = -1;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static boolean drawableMatches(final View view, final Drawable drawable, @DrawableRes final int e... | import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.ImageView;
import org.hamcrest.Description;
import static com.vanniktech.espresso.core.utils.Ut... | package com.vanniktech.espresso.core.utils;
public final class DrawableMatcher extends BoundedMatcher<View, ImageView> {
/**
* Matches that the given view has the expected drawable.
*
* <p>Example usage:</p>
* <code>onView(withId(R.id.view)).check(matches(withDrawable(R.drawable.android)));</code>
*... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static final int NO_DRAWABLE = -1;
//
// Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static boolean drawableMatches(final View view, final Drawable drawable, @DrawableRes final int e... | return drawableMatches(imageView, drawable, expectedId); |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/ColorChecker.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// @NonNull static <T> T checkNotNull(@Nullable final T reference, final String message) {
// if (reference == null) {
// throw new IllegalArgumentException(message);
// }
//
// return reference;
// }
| import android.content.Context;
import androidx.annotation.CheckResult;
import androidx.annotation.ColorInt;
import androidx.annotation.ColorRes;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import static com.vanniktech.espresso.core.utils.Utils.checkNotNull; | package com.vanniktech.espresso.core.utils;
final class ColorChecker {
@CheckResult static ColorChecker fromRes(@ColorRes final int colorRes) {
final ColorChecker matcher = new ColorChecker();
matcher.colorRes = colorRes;
return matcher;
}
@CheckResult static ColorChecker from(@ColorInt final int ... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// @NonNull static <T> T checkNotNull(@Nullable final T reference, final String message) {
// if (reference == null) {
// throw new IllegalArgumentException(message);
// }
//
// return reference;
// }
// Path: espresso... | return color == ContextCompat.getColor(context, checkNotNull(colorRes, "colorRes == null")); |
vanniktech/espresso-utils | espresso-core-utils/src/test/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcherTypeTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java
// enum Type {
// DRAWABLE_LEFT(INDEX_LEFT, false, "left"),
// DRAWABLE_RELATIVE_LEFT(INDEX_LEFT, true, "relative left"),
// DRAWABLE_TOP(INDEX_TOP, false, "top"),
// DRAWABLE_RELATIVE_TOP(INDEX_TOP, true,... | import com.vanniktech.espresso.core.utils.TextViewDrawableMatcher.Type;
import org.junit.Test;
import static com.vanniktech.espresso.core.utils.TextViewDrawableMatcher.Type.DRAWABLE_BOTTOM;
import static com.vanniktech.espresso.core.utils.TextViewDrawableMatcher.Type.DRAWABLE_LEFT;
import static com.vanniktech.espresso... | package com.vanniktech.espresso.core.utils;
public final class TextViewDrawableMatcherTypeTest {
@Test public void entries() { | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java
// enum Type {
// DRAWABLE_LEFT(INDEX_LEFT, false, "left"),
// DRAWABLE_RELATIVE_LEFT(INDEX_LEFT, true, "relative left"),
// DRAWABLE_TOP(INDEX_TOP, false, "top"),
// DRAWABLE_RELATIVE_TOP(INDEX_TOP, true,... | assertThat(Type.values()).containsExactly( |
vanniktech/espresso-utils | espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static int resolveAttribute(final View view, @AttrRes final int attr) {
// final TypedValue value = new TypedValue();
// view.getContext().getTheme().resolveAttribute(attr, value, true);
// return value.data;
// }
| import android.graphics.Color;
import androidx.annotation.AttrRes;
import androidx.annotation.CheckResult;
import androidx.annotation.ColorInt;
import androidx.annotation.ColorRes;
import androidx.annotation.Nullable;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.... | * <p>Example usage:</p>
* <code>onView(withId(R.id.view)).check(matches(withColorButtonNormal(RED)));</code>
*/
@CheckResult public static AttributeMatcher withColorButtonNormal(@ColorInt final int color) {
return new AttributeMatcher(R.attr.colorButtonNormal, "colorButtonNormal", ColorChecker.from(color... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/Utils.java
// static int resolveAttribute(final View view, @AttrRes final int attr) {
// final TypedValue value = new TypedValue();
// view.getContext().getTheme().resolveAttribute(attr, value, true);
// return value.data;
// }
// Pat... | final int color = resolveAttribute(item, attr); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class AttributeMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<AttributeMatcherActivity> activityTestRule = new ActivityTestRule<>(Attribute... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withAttrRes(R.attr.colorError, R.color.blue))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class AttributeMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<AttributeMatcherActivity> activityTestRule = new ActivityTestRule<>(Attribute... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withAttrRes(R.attr.colorError, R.color.blue))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class AttributeMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<AttributeMatcherActivity> activityTestRule = new ActivityTestRule<>(Attribute... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withAttr(R.attr.colorError, BLUE))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | package com.vanniktech.espresso.core.utils;
@RunWith(AndroidJUnit4.class) public final class AttributeMatcherTest {
@Rule public final ExpectedException expectedException = ExpectedException.none();
@Rule public final ActivityTestRule<AttributeMatcherActivity> activityTestRule = new ActivityTestRule<>(Attribute... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withColorButtonNormalRes(R.color.red))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | onView(withId(VIEW_ID)).check(matches(withAttr(R.attr.colorError, BLUE)));
}
@Test public void withAttrStringMatches() {
onView(withId(VIEW_ID)).check(matches(withAttr(R.attr.colorError, "#0000ff")));
}
@Test public void withAttrResDoesNotMatch() {
expectedException.expect(AssertionFailedError.cla... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withColorButtonNormal(RED))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | onView(withId(VIEW_ID)).check(matches(withColorButtonNormalRes(R.color.red)));
}
@Test public void withColorButtonNormalMatches() {
onView(withId(VIEW_ID)).check(matches(withColorButtonNormal(RED)));
}
@Test public void withColorButtonNormalStringMatches() {
onView(withId(VIEW_ID)).check(matches(w... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withColorAccentRes(R.color.green))); |
vanniktech/espresso-utils | espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils/AttributeMatcherTest.java | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.rule.ActivityTestRule;
import com.vanniktech.espresso.core.utils.test.R;
import junit.framework.AssertionFailedError;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import... | onView(withId(VIEW_ID)).check(matches(withColorButtonNormal(RED)));
}
@Test public void withColorButtonNormalStringMatches() {
onView(withId(VIEW_ID)).check(matches(withColorButtonNormal("#ff0000")));
}
@Test public void withColorButtonNormalResDoesNotMatch() {
expectedException.expect(AssertionFa... | // Path: espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/AttributeMatcher.java
// @CheckResult public static AttributeMatcher withAttr(@AttrRes final int attr, @ColorInt final int color) {
// return new AttributeMatcher(attr, null, ColorChecker.from(color));
// }
//
// Path: espresso-core-utils/... | onView(withId(VIEW_ID)).check(matches(withColorAccent(GREEN))); |
frankjoshua/openjira | src/org/openjira/jira/ServerList.java | // Path: src/org/openjira/jira/model/JiraServer.java
// public class JiraServer {
//
// private int _id;
// private String name;
// private String url;
// private String user;
// private String password;
//
// public JiraServer(int _id, String name, String url, String user, String password) {
... | import android.widget.ListView;
import java.util.ArrayList;
import org.openjira.jira.model.JiraServer;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.MenuItem... | /*******************************************************************************
* Copyright 2012 Alexandre d'Alton
*
* 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.a... | // Path: src/org/openjira/jira/model/JiraServer.java
// public class JiraServer {
//
// private int _id;
// private String name;
// private String url;
// private String user;
// private String password;
//
// public JiraServer(int _id, String name, String url, String user, String password) {
... | ArrayList<JiraServer> servers; |
frankjoshua/openjira | src/org/openjira/jira/About.java | // Path: src/org/openjira/jira/model/JiraServerInfo.java
// public class JiraServerInfo {
// private String baseUrl;
// private String edition;
// private String buildNumber;
// private String buildDate;
// private String version;
//
// public static JiraServerInfo fromMap(Map<String, Object> m... | import org.openjira.jira.model.JiraServerInfo;
import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView; | /*******************************************************************************
* Copyright 2012 Alexandre d'Alton
*
* 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.a... | // Path: src/org/openjira/jira/model/JiraServerInfo.java
// public class JiraServerInfo {
// private String baseUrl;
// private String edition;
// private String buildNumber;
// private String buildDate;
// private String version;
//
// public static JiraServerInfo fromMap(Map<String, Object> m... | JiraServerInfo info = JiraApp.get().getCurrentConnection().serverInfo; |
frankjoshua/openjira | src/org/xmlrpc/android/XMLRPCClient.java | // Path: src/org/openjira/jira/utils/ConnectionClient.java
// public class ConnectionClient extends DefaultHttpClient {
// public ConnectionClient(Credentials cred) {
// super();
// if (cred != null)
// setCredentials(cred);
// HttpConnectionParams.setConnectionTimeout(this.getPa... | import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringWriter;
import java.net.URI;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
i... | package org.xmlrpc.android;
/**
* XMLRPCClient allows to call remote XMLRPC method.
*
* <p>
* The following table shows how XML-RPC types are mapped to java call parameters/response values.
* </p>
*
* <p>
* <table border="2" align="center" cellpadding="5">
* <thead><tr><th>XML-RPC Type</th><th>Call Param... | // Path: src/org/openjira/jira/utils/ConnectionClient.java
// public class ConnectionClient extends DefaultHttpClient {
// public ConnectionClient(Credentials cred) {
// super();
// if (cred != null)
// setCredentials(cred);
// HttpConnectionParams.setConnectionTimeout(this.getPa... | client = new ConnectionClient(null, 443); |
frankjoshua/openjira | src/org/openjira/jira/CreateIssue.java | // Path: src/org/openjira/jira/model/JiraVersion.java
// public class JiraVersion {
// private String name;
// private String releaseDate;
// private int sequence;
// private boolean released;
// private int id;
// private boolean archived;
//
// public JiraVersion() {
// super();
/... | import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
import org.openjira.jira.model.JiraVersion;
import org.xmlrpc.android.XMLRPCException;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnC... | /*******************************************************************************
* Copyright 2012 Alexandre d'Alton
*
* 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.a... | // Path: src/org/openjira/jira/model/JiraVersion.java
// public class JiraVersion {
// private String name;
// private String releaseDate;
// private int sequence;
// private boolean released;
// private int id;
// private boolean archived;
//
// public JiraVersion() {
// super();
/... | ArrayList<JiraVersion> versions = conn.getProject(projectIds.get(arg2)).getVersions(); |
frankjoshua/openjira | src/org/openjira/jira/JiraFilters.java | // Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// public JiraConn getInstance() {
// return JiraConn.this;
// }
// }
//
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exc... | import java.util.ArrayList;
import org.openjira.jira.JiraConn.LocalBinder;
import org.openjira.jira.JiraConn.LoginListener;
import org.openjira.jira.model.JiraFilter;
import org.openjira.jira.model.JiraServer;
import android.app.ProgressDialog;
import android.app.Service;
import android.content.ComponentName;
import an... | /*******************************************************************************
* Copyright 2012 Alexandre d'Alton
*
* 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.a... | // Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// public JiraConn getInstance() {
// return JiraConn.this;
// }
// }
//
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exc... | final JiraConn jiraConn = ((LocalBinder) service).getInstance(); |
frankjoshua/openjira | src/org/openjira/jira/JiraFilters.java | // Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// public JiraConn getInstance() {
// return JiraConn.this;
// }
// }
//
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exc... | import java.util.ArrayList;
import org.openjira.jira.JiraConn.LocalBinder;
import org.openjira.jira.JiraConn.LoginListener;
import org.openjira.jira.model.JiraFilter;
import org.openjira.jira.model.JiraServer;
import android.app.ProgressDialog;
import android.app.Service;
import android.content.ComponentName;
import an... | /*******************************************************************************
* Copyright 2012 Alexandre d'Alton
*
* 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.a... | // Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// public JiraConn getInstance() {
// return JiraConn.this;
// }
// }
//
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exc... | final JiraServer server = app.getServerFromName(data.getQueryParameter("server")); |
frankjoshua/openjira | src/org/openjira/jira/JiraFilters.java | // Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// public JiraConn getInstance() {
// return JiraConn.this;
// }
// }
//
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exc... | import java.util.ArrayList;
import org.openjira.jira.JiraConn.LocalBinder;
import org.openjira.jira.JiraConn.LoginListener;
import org.openjira.jira.model.JiraFilter;
import org.openjira.jira.model.JiraServer;
import android.app.ProgressDialog;
import android.app.Service;
import android.content.ComponentName;
import an... | }
});
}
@Override
protected void onStart() {
super.onStart();
final Intent service = new Intent(this, JiraConn.class);
bindService(service, this.connection, Service.BIND_AUTO_CREATE);
}
@Override
public void onStop() {
super.onStop();
try {
unbindService(this.connection);
} catch (final Exce... | // Path: src/org/openjira/jira/JiraConn.java
// public class LocalBinder extends Binder {
// public JiraConn getInstance() {
// return JiraConn.this;
// }
// }
//
// Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exc... | final ArrayList<JiraFilter> filters = this.conn.getFilters(); |
frankjoshua/openjira | src/org/openjira/jira/EditServer.java | // Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exception e);
//
// public void onSyncProgress(String message, int progress, int max);
// }
| import org.openjira.jira.JiraConn.LoginListener;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast; | // validate connection, on failure cancel next steps
// TODO: needs to be redesigned because connection test is
// asynchronous and we need to wait here for the real result...
if (testConnection(serverName, serverUrl, username, password)) {
// Build a return bundle
}
}
/**
* This fun... | // Path: src/org/openjira/jira/JiraConn.java
// public interface LoginListener {
// public void onLoginComplete();
//
// public void onLoginError(Exception e);
//
// public void onSyncProgress(String message, int progress, int max);
// }
// Path: src/org/openjira/jira/EditServer.java
import org.openjira.jira.Jir... | JiraConn.testLogin(url, user, pass, new LoginListener() { |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/StopGrid.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.build;
public class StopGrid extends CloudCommandBaseBuild
{
@DataBoundConstructor
public StopGrid(String url, String cloudTestServerID, String name)
{
super(url, cloudTestServerID, name);
... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/build/StopGrid.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.clo... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StartRSDB.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StartRSDB extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StartRSDB(String url, String cloudTestServerID, String name, int timeOut)
{
super(url, cl... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/StartRSDB.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkin... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/httpclient/GenericSelfClosingHttpClient.java | // Path: src/main/java/com/soasta/jenkins/ProxyChecker.java
// public class ProxyChecker
// {
// public static boolean useProxy(String host, ProxyConfiguration proxyConfig)
// {
// // Check if the proxy applies for this destination host.
// // This code is more or less copied from ProxyConfiguration.createP... | import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.X509Certificate;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.net.ssl.KeyManager;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import javax.net.s... | new X509TrustManager()
{
public java.security.cert.X509Certificate[] getAcceptedIssuers()
{
return new X509Certificate[] {};
}
public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType)
{
}
... | // Path: src/main/java/com/soasta/jenkins/ProxyChecker.java
// public class ProxyChecker
// {
// public static boolean useProxy(String host, ProxyConfiguration proxyConfig)
// {
// // Check if the proxy applies for this destination host.
// // This code is more or less copied from ProxyConfiguration.createP... | if (proxyInfo != null && proxyInfo.name != null && ProxyChecker.useProxy(host, proxyInfo)) |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/StartGrid.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.build;
public class StartGrid extends CloudCommandBaseBuild
{
@DataBoundConstructor
public StartGrid(String url, String cloudTestServerID, String name, int timeOut)
{
super(url, cloudTestSe... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/build/StartGrid.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cl... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/CloudCommandBaseBuild.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | import java.io.File;
import java.io.IOException;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.util.ArgumentListBuilder;
import jenkins.tasks.SimpleBuildStep;
import org.w3c.d... | return this.url;
}
public final String cloudTestServerID()
{
return this.cloudTestServerID;
}
public String getCloudTestServerID()
{
return cloudTestServerID;
}
public final String getName()
{
return name;
}
public final int getTimeOut()
{
return timeOut;
}
... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | new CloudCommandBuilder() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/CloudCommandBaseBuild.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | import java.io.File;
import java.io.IOException;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.util.ArgumentListBuilder;
import jenkins.tasks.SimpleBuildStep;
import org.w3c.d... | isSucessful(xml.readToString());
}
catch (Exception e)
{
e.printStackTrace();
return;
}
}
@Override
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
FilePath fileP... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | public abstract CloudStatus getSuccessStatus(); |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/StartTestEnvironment.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /**
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.build;
public class StartTestEnvironment extends CloudCommandBaseBuild
{
@DataBoundConstructor
public StartTestEnvironment(String url, String cloudTestServerID, String name, int timeOut)
{... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/build/StartTestEnvironment.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StopTestEnvironment.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /**
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StopTestEnvironment extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StopTestEnvironment(String url, String cloudTestServerID, String name)
{
super... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/StopTestEnvironment.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soa... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/CloudCommandBasePostBuild.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | import java.io.File;
import java.io.IOException;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.util.ArgumentListBuilder;
import jenkins.tasks.SimpleBuildStep;
import org.w3c.d... | this.timeOut = getDefaultTimeout();
}
else
{
this.timeOut = timeOut;
}
}
public String getName()
{
return name;
}
public String getCloudTestServerID()
{
return cloudTestServerID;
}
public int getTimeOut()
{
return timeOut;
}
@Override
public v... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | new CloudCommandBuilder() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/CloudCommandBasePostBuild.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | import java.io.File;
import java.io.IOException;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.util.ArgumentListBuilder;
import jenkins.tasks.SimpleBuildStep;
import org.w3c.d... | isSucessful(xml.readToString());
}
catch (Exception e)
{
e.printStackTrace();
return;
}
}
@Override
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {
FilePath fileP... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudCommandBuilder.java
// public class CloudCommandBuilder {
// /**
// * URL of the server to use (deprecated).
// */
// private String url;
// /**
// * ID of the server to use.
// * @see CloudTestServer
// */
// private String c... | public abstract CloudStatus getSuccessStatus(); |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StopRSDB.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension;
import org.jenkinsci.Symbol; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StopRSDB extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StopRSDB(String url, String cloudTestServerID, String name)
{
super(url, cloudTestServerID, n... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/StopRSDB.java
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hu... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/StopTestEnvironment.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /**
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.build;
public class StopTestEnvironment extends CloudCommandBaseBuild
{
@DataBoundConstructor
public StopTestEnvironment(String url, String cloudTestServerID, String name)
{
super(url, cl... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/build/StopTestEnvironment.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/StopRSDB.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.build;
public class StopRSDB extends CloudCommandBaseBuild
{
@DataBoundConstructor
public StopRSDB(String url, String cloudTestServerID, String name)
{
super(url, cloudTestServerID, name... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/build/StopRSDB.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.clo... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StartGrid.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
//
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/AbstractCloudCommandPostBuildDescriptor.java
// public abstract class AbstractCloudCommandPostBuildDescriptor exten... | import hudson.Extension;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import com.soasta.jenkins.cloud.postbuild.AbstractCloudCommandPostBuildDescriptor; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StartGrid extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StartGrid(String url, String cloudTestServerID, String name, int timeOut)
{
super(url, clo... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
//
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/AbstractCloudCommandPostBuildDescriptor.java
// public abstract class AbstractCloudCommandPostBuildDescriptor exten... | public static class DescriptorImpl extends AbstractCloudCommandPostBuildDescriptor |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StartGrid.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
//
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/AbstractCloudCommandPostBuildDescriptor.java
// public abstract class AbstractCloudCommandPostBuildDescriptor exten... | import hudson.Extension;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import com.soasta.jenkins.cloud.postbuild.AbstractCloudCommandPostBuildDescriptor; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StartGrid extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StartGrid(String url, String cloudTestServerID, String name, int timeOut)
{
super(url, clo... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
//
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/AbstractCloudCommandPostBuildDescriptor.java
// public abstract class AbstractCloudCommandPostBuildDescriptor exten... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StopGrid.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StopGrid extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StopGrid(String url, String cloudTestServerID, String name)
{
super(url, cloudTestServerID,... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/StopGrid.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/build/StartRSDB.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /*
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.build;
public class StartRSDB extends CloudCommandBaseBuild
{
@DataBoundConstructor
public StartRSDB(String url, String cloudTestServerID, String name, int timeOut)
{
super(url, cloudTestS... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/build/StartRSDB.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cl... | public CloudStatus getSuccessStatus() |
jenkinsci/cloudtest-plugin | src/main/java/com/soasta/jenkins/cloud/postbuild/StartTestEnvironment.java | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
| import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.soasta.jenkins.cloud.CloudStatus;
import hudson.Extension; | /**
* Copyright (c) 2015, CloudBees, Inc., SOASTA, Inc.
* All Rights Reserved.
*/
package com.soasta.jenkins.cloud.postbuild;
public class StartTestEnvironment extends CloudCommandBasePostBuild
{
@DataBoundConstructor
public StartTestEnvironment(String url, String cloudTestServerID, String name, int time... | // Path: src/main/java/com/soasta/jenkins/cloud/CloudStatus.java
// public enum CloudStatus
// {
// TERMINATED,
// READY,
// FAILED
// }
// Path: src/main/java/com/soasta/jenkins/cloud/postbuild/StartTestEnvironment.java
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import com.so... | public CloudStatus getSuccessStatus() |
andforce/SmartZPN | app/src/main/java/org/zarroboogs/smartzpn/utils/TokenUtils.java | // Path: app/src/main/java/org/zarroboogs/smartzpn/SmartZpnApplication.java
// public class SmartZpnApplication extends Application {
// private static Context mContext;
//
// @Override
// public void onCreate() {
// super.onCreate();
// mContext = this.getApplicationContext();
// }
// ... | import android.content.Context;
import android.content.SharedPreferences;
import org.zarroboogs.smartzpn.SmartZpnApplication; | package org.zarroboogs.smartzpn.utils;
/**
* Created by wangdiyuan on 15-8-13.
*/
public class TokenUtils {
private static final String TOKEN = "token";
private static final String SPEC = "spec";
| // Path: app/src/main/java/org/zarroboogs/smartzpn/SmartZpnApplication.java
// public class SmartZpnApplication extends Application {
// private static Context mContext;
//
// @Override
// public void onCreate() {
// super.onCreate();
// mContext = this.getApplicationContext();
// }
// ... | private static SharedPreferences mSharedPreferences = SmartZpnApplication.getContext().getSharedPreferences(SmartZpnApplication.getContext().getPackageName(), Context.MODE_PRIVATE); |
IHTSDO/snomed-boot | src/main/java/org/ihtsdo/otf/snomedboot/factory/LoadingProfile.java | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/ConceptConstants.java
// public interface ConceptConstants {
// String ROOT_CONCEPT = "138875005";
// String isA = "116680003";
// String FSN = "900000000000003001";
// String REFSET_CONCEPT = "900000000000455006";
// String CORE_MODULE = "900000000000207008"... | import com.google.common.collect.ImmutableSet;
import org.ihtsdo.otf.snomedboot.domain.ConceptConstants;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set; | package org.ihtsdo.otf.snomedboot.factory;
public class LoadingProfile implements Cloneable {
public static final LoadingProfile light = new LoadingProfile();
public static final LoadingProfile complete = new LoadingProfile();
static {
light.inferredAttributeMapOnConcept = true;
light.descriptions = true; | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/ConceptConstants.java
// public interface ConceptConstants {
// String ROOT_CONCEPT = "138875005";
// String isA = "116680003";
// String FSN = "900000000000003001";
// String REFSET_CONCEPT = "900000000000455006";
// String CORE_MODULE = "900000000000207008"... | light.refsetIds.add(ConceptConstants.GB_EN_LANGUAGE_REFERENCE_SET); |
IHTSDO/snomed-boot | src/main/java/org/ihtsdo/otf/snomedboot/factory/implementation/HighLevelComponentFactoryAdapterImpl.java | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/ConceptConstants.java
// public interface ConceptConstants {
// String ROOT_CONCEPT = "138875005";
// String isA = "116680003";
// String FSN = "900000000000003001";
// String REFSET_CONCEPT = "900000000000455006";
// String CORE_MODULE = "900000000000207008"... | import org.ihtsdo.otf.snomedboot.domain.ConceptConstants;
import org.ihtsdo.otf.snomedboot.factory.*; | package org.ihtsdo.otf.snomedboot.factory.implementation;
public class HighLevelComponentFactoryAdapterImpl implements ComponentFactory {
private final LoadingProfile loadingProfile;
private final HighLevelComponentFactory highLevelFactory;
private final ComponentFactory delegateComponentFactory;
public HighLev... | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/ConceptConstants.java
// public interface ConceptConstants {
// String ROOT_CONCEPT = "138875005";
// String isA = "116680003";
// String FSN = "900000000000003001";
// String REFSET_CONCEPT = "900000000000455006";
// String CORE_MODULE = "900000000000207008"... | if (isActive(active) && ConceptConstants.FSN.equals(typeId)) { |
IHTSDO/snomed-boot | src/main/java/org/ihtsdo/otf/snomedboot/factory/implementation/standard/ConceptImpl.java | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/Concept.java
// public interface Concept {
// Long getId();
//
// Set<Long> getMemberOfRefsetIds();
//
// Set<Long> getInferredAncestorIds() throws IllegalStateException;
//
// Set<Long> getStatedAncestorIds() throws IllegalStateException;
//
// boolean i... | import org.ihtsdo.otf.snomedboot.domain.Concept;
import org.ihtsdo.otf.snomedboot.domain.ConcreteRelationship;
import org.ihtsdo.otf.snomedboot.domain.Description;
import org.ihtsdo.otf.snomedboot.domain.Relationship;
import java.util.*; | package org.ihtsdo.otf.snomedboot.factory.implementation.standard;
public class ConceptImpl implements Concept {
private final Long id;
private String effectiveTime;
private boolean active;
private String moduleId;
private String definitionStatusId;
private String fsn;
private final Map<String, Set<String>> ... | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/Concept.java
// public interface Concept {
// Long getId();
//
// Set<Long> getMemberOfRefsetIds();
//
// Set<Long> getInferredAncestorIds() throws IllegalStateException;
//
// Set<Long> getStatedAncestorIds() throws IllegalStateException;
//
// boolean i... | private final List<Relationship> relationships; |
IHTSDO/snomed-boot | src/main/java/org/ihtsdo/otf/snomedboot/factory/implementation/standard/ConceptImpl.java | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/Concept.java
// public interface Concept {
// Long getId();
//
// Set<Long> getMemberOfRefsetIds();
//
// Set<Long> getInferredAncestorIds() throws IllegalStateException;
//
// Set<Long> getStatedAncestorIds() throws IllegalStateException;
//
// boolean i... | import org.ihtsdo.otf.snomedboot.domain.Concept;
import org.ihtsdo.otf.snomedboot.domain.ConcreteRelationship;
import org.ihtsdo.otf.snomedboot.domain.Description;
import org.ihtsdo.otf.snomedboot.domain.Relationship;
import java.util.*; | package org.ihtsdo.otf.snomedboot.factory.implementation.standard;
public class ConceptImpl implements Concept {
private final Long id;
private String effectiveTime;
private boolean active;
private String moduleId;
private String definitionStatusId;
private String fsn;
private final Map<String, Set<String>> ... | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/Concept.java
// public interface Concept {
// Long getId();
//
// Set<Long> getMemberOfRefsetIds();
//
// Set<Long> getInferredAncestorIds() throws IllegalStateException;
//
// Set<Long> getStatedAncestorIds() throws IllegalStateException;
//
// boolean i... | private final List<ConcreteRelationship> concreteRelationships; |
IHTSDO/snomed-boot | src/main/java/org/ihtsdo/otf/snomedboot/factory/implementation/standard/ConceptImpl.java | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/Concept.java
// public interface Concept {
// Long getId();
//
// Set<Long> getMemberOfRefsetIds();
//
// Set<Long> getInferredAncestorIds() throws IllegalStateException;
//
// Set<Long> getStatedAncestorIds() throws IllegalStateException;
//
// boolean i... | import org.ihtsdo.otf.snomedboot.domain.Concept;
import org.ihtsdo.otf.snomedboot.domain.ConcreteRelationship;
import org.ihtsdo.otf.snomedboot.domain.Description;
import org.ihtsdo.otf.snomedboot.domain.Relationship;
import java.util.*; | package org.ihtsdo.otf.snomedboot.factory.implementation.standard;
public class ConceptImpl implements Concept {
private final Long id;
private String effectiveTime;
private boolean active;
private String moduleId;
private String definitionStatusId;
private String fsn;
private final Map<String, Set<String>> ... | // Path: src/main/java/org/ihtsdo/otf/snomedboot/domain/Concept.java
// public interface Concept {
// Long getId();
//
// Set<Long> getMemberOfRefsetIds();
//
// Set<Long> getInferredAncestorIds() throws IllegalStateException;
//
// Set<Long> getStatedAncestorIds() throws IllegalStateException;
//
// boolean i... | private final List<Description> descriptions; |
IHTSDO/snomed-boot | src/main/java/org/ihtsdo/otf/snomedboot/factory/implementation/standard/ComponentStoreComponentFactoryImpl.java | // Path: src/main/java/org/ihtsdo/otf/snomedboot/factory/FactoryUtils.java
// public class FactoryUtils {
//
// public static final String ACTIVE = "1";
//
// public static boolean parseActive(String active) {
// return ACTIVE.equals(active);
// }
//
// public static boolean isConceptId(String componentId) {
/... | import org.ihtsdo.otf.snomedboot.factory.FactoryUtils;
import org.ihtsdo.otf.snomedboot.factory.HighLevelComponentFactory;
import org.ihtsdo.otf.snomedboot.factory.ImpotentComponentFactory; | package org.ihtsdo.otf.snomedboot.factory.implementation.standard;
public class ComponentStoreComponentFactoryImpl extends ImpotentComponentFactory implements HighLevelComponentFactory {
private final ComponentStore componentStore;
public ComponentStoreComponentFactoryImpl(ComponentStore componentStore) {
this.... | // Path: src/main/java/org/ihtsdo/otf/snomedboot/factory/FactoryUtils.java
// public class FactoryUtils {
//
// public static final String ACTIVE = "1";
//
// public static boolean parseActive(String active) {
// return ACTIVE.equals(active);
// }
//
// public static boolean isConceptId(String componentId) {
/... | componentStore.addConcept(new ConceptImpl(conceptId, effectiveTime, FactoryUtils.parseActive(active), moduleId, definitionStatusId)); |
cyberbeat/java-css | com/sun/stylesheet/types/StringConverter.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import com.sun.stylesheet.StylesheetException; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | default: throw new StylesheetException("invalid " + |
cyberbeat/java-css | com/sun/stylesheet/swing/FontWeightHandler.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.awt.Font;
import java.beans.PropertyDescriptor;
import com.sun.stylesheet.StylesheetException;
import com.sun.stylesheet.styleable.DefaultPropertyHandler; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | public Object getProperty(Object object) throws StylesheetException { |
cyberbeat/java-css | com/sun/stylesheet/types/PrimitiveConverter.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.lang.reflect.Field;
import com.sun.stylesheet.StylesheetException;
| /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Fo... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | throw new StylesheetException("expected 'true' or 'false'" +
|
cyberbeat/java-css | com/sun/stylesheet/swing/FontFamilyHandler.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.awt.Font;
import java.beans.PropertyDescriptor;
import com.sun.stylesheet.StylesheetException;
import com.sun.stylesheet.styleable.DefaultPropertyHandler; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | public Object getProperty(Object object) throws StylesheetException { |
cyberbeat/java-css | com/sun/stylesheet/types/EnumConverter.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import com.sun.stylesheet.StylesheetException;
| /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Fo... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | throw new StylesheetException('"' + string +
|
cyberbeat/java-css | com/sun/stylesheet/types/SizeConverter.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.sun.stylesheet.StylesheetException; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | throw new StylesheetException("Could not convert string '" + string + |
cyberbeat/java-css | com/sun/stylesheet/swing/TextHandler.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.beans.PropertyDescriptor;
import com.sun.stylesheet.StylesheetException;
import com.sun.stylesheet.styleable.DefaultPropertyHandler;
import com.sun.stylesheet.styleable.StyleSupport; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | public void setProperty(Object object, Object value) throws StylesheetException { |
cyberbeat/java-css | com/sun/stylesheet/types/TimeConverter.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.sun.stylesheet.StylesheetException; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | throw new StylesheetException("Could not convert string '" + string + |
cyberbeat/java-css | com/sun/stylesheet/swing/FontStyleHandler.java | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | import java.awt.Font;
import java.beans.PropertyDescriptor;
import com.sun.stylesheet.StylesheetException;
import com.sun.stylesheet.styleable.DefaultPropertyHandler; | /*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | // Path: com/sun/stylesheet/StylesheetException.java
// public class StylesheetException extends RuntimeException {
// /** Creates a new <code>StylesheetException</code>. */
// public StylesheetException() {
// }
//
//
// /**
// * Creates a new <code>StylesheetException</code> wit... | public Object getProperty(Object object) throws StylesheetException { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.