Example usage for com.intellij.openapi.ui TestDialog interface-usage

List of usage examples for com.intellij.openapi.ui TestDialog interface-usage

Introduction

In this page you can find the example usage for com.intellij.openapi.ui TestDialog interface-usage.

Usage

From source file com.android.tools.idea.testing.TestMessagesDialog.java

/**
 * Allows to mock message dialogs in headless integration tests.
 * <p>
 * Sample usage:
 * <pre>
 *   // Replace the default dialog used by com.intellij.openapi.ui.Messages with a mock one.

From source file com.hp.alm.ali.idea.services.TestMessages.java

public class TestMessages implements TestDialog {

    private LinkedList<Pair<String, Integer>> messages = new LinkedList<Pair<String, Integer>>();

    @Override
    public int show(String message) {