diff options
author | Luis Sigal <luissigal@google.com> | 2011-02-24 17:22:33 +0000 |
---|---|---|
committer | Luis Sigal <luissigal@google.com> | 2011-02-24 19:37:22 +0000 |
commit | 8da3e6ec64b991f5aa1e6561941d130683eba753 (patch) | |
tree | accbe7584ca1f0c14d0d28b2083abd3a5d5b14d0 /tests/com/google/android/testing/mocking/ClassHasNoDefaultConstructor.java | |
parent | f80b03ef62a5afecdaf17e8ac9f05aa3ed21307b (diff) | |
download | android-mock-8da3e6ec64b991f5aa1e6561941d130683eba753.tar.gz |
Add android-mock to external
Android mock is used by QuickSearchBox to mock classes instead of
creating tons of interfaces.
Change-Id: Ib53ca3a6c5e8e27f42b66cc9e39bbf0d55ed2170
Diffstat (limited to 'tests/com/google/android/testing/mocking/ClassHasNoDefaultConstructor.java')
-rw-r--r-- | tests/com/google/android/testing/mocking/ClassHasNoDefaultConstructor.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/com/google/android/testing/mocking/ClassHasNoDefaultConstructor.java b/tests/com/google/android/testing/mocking/ClassHasNoDefaultConstructor.java new file mode 100644 index 0000000..8b97cd8 --- /dev/null +++ b/tests/com/google/android/testing/mocking/ClassHasNoDefaultConstructor.java @@ -0,0 +1,31 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.android.testing.mocking; + +/** + * Class with no default constructor. Used only for testing. + * + * @author swoodward@google.com (Stephen Woodward) + */ +public class ClassHasNoDefaultConstructor { + public ClassHasNoDefaultConstructor(int foo) { + + } + + public int foo() { + return 0; + } +} |