1// Copyright 2008 The Android Open Source Project 2 3package android.test.mock; 4 5import android.content.DialogInterface; 6 7/** 8 * A mock {@link android.content.DialogInterface} class. All methods are non-functional and throw 9 * {@link java.lang.UnsupportedOperationException}. Override it to provide the operations that you 10 * need. 11 */ 12public class MockDialogInterface implements DialogInterface { 13 public void cancel() { 14 throw new UnsupportedOperationException("not implemented yet"); 15 } 16 17 public void dismiss() { 18 throw new UnsupportedOperationException("not implemented yet"); 19 } 20} 21