1// Copyright 2015 Aaron Jacobs. All Rights Reserved.
2// Author: aaronjjacobs@gmail.com (Aaron Jacobs)
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package oglematchers_test
17
18import (
19	"fmt"
20	"testing"
21
22	. "github.com/smartystreets/assertions/internal/ogletest"
23)
24
25func TestStop(t *testing.T) { RunTests(t) }
26
27////////////////////////////////////////////////////////////////////////
28// Boilerplate
29////////////////////////////////////////////////////////////////////////
30
31type StopTest struct {
32}
33
34var _ TearDownInterface = &StopTest{}
35var _ TearDownTestSuiteInterface = &StopTest{}
36
37func init() { RegisterTestSuite(&StopTest{}) }
38
39func (t *StopTest) TearDown() {
40	fmt.Println("TearDown running.")
41}
42
43func (t *StopTest) TearDownTestSuite() {
44	fmt.Println("TearDownTestSuite running.")
45}
46
47////////////////////////////////////////////////////////////////////////
48// Tests
49////////////////////////////////////////////////////////////////////////
50
51func (t *StopTest) First() {
52}
53
54func (t *StopTest) Second() {
55	fmt.Println("About to call StopRunningTests.")
56	StopRunningTests()
57	fmt.Println("Called StopRunningTests.")
58}
59
60func (t *StopTest) Third() {
61}
62