Example usage for com.google.common.truth StringSubject StringSubject

List of usage examples for com.google.common.truth StringSubject StringSubject

Introduction

In this page you can find the example usage for com.google.common.truth StringSubject StringSubject.

Prototype

public StringSubject(FailureStrategy failureStrategy, String string) 

Source Link

Usage

From source file:com.android.build.gradle.integration.common.truth.AarSubject.java

@NonNull
public StringSubject textSymbolFile() throws IOException {
    InputStream stream = getInputStream("R.txt");

    return new StringSubject(failureStrategy,
            CharStreams.toString(new InputStreamReader(stream, Charsets.UTF_8)));
}