From d1724c39199391c597c1e85df4bdd7b8edeff3da Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 13 Mar 2017 15:53:41 +0000 Subject: Revert "Empty external/littlemock repository as it is no longer needed" This reverts commit 7eccb241a931cf2de01cc6cfac0cd80170e10fec. Change-Id: I92151ed7065226f33bccc844ed68f0dbf2c43da0 --- src/com/google/testing/littlemock/Behaviour.java | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/com/google/testing/littlemock/Behaviour.java (limited to 'src/com/google/testing/littlemock/Behaviour.java') diff --git a/src/com/google/testing/littlemock/Behaviour.java b/src/com/google/testing/littlemock/Behaviour.java new file mode 100644 index 0000000..f298285 --- /dev/null +++ b/src/com/google/testing/littlemock/Behaviour.java @@ -0,0 +1,27 @@ +/* + * Copyright 2011 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.testing.littlemock; + +/** + * An action to be performed, yet to be attached to a method call. + * + * @author hugohudson@gmail.com (Hugo Hudson) + */ +public interface Behaviour { + /** Attaches the given behaviour to the next method call of this mock. */ + public T when(T mock); +} -- cgit v1.2.3