~brian-thomason/+junk/groovy-1.7.2

« back to all changes in this revision

Viewing changes to src/test/org/codehaus/groovy/tools/shell/commands/ShowCommandTest.groovy

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:31:12 UTC
  • Revision ID: brian.thomason@canonical.com-20111220173112-u53pbzhiy5y1hau0
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2003-2007 the original author or authors.
 
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
 */
 
16
 
 
17
package org.codehaus.groovy.tools.shell.commands
 
18
 
 
19
import org.codehaus.groovy.tools.shell.CommandException
 
20
 
 
21
/**
 
22
 * Tests for the {@link ShowCommand} class.
 
23
 *
 
24
 * @version $Id: ShowCommandTest.groovy 8447 2007-10-07 10:17:11Z user57 $
 
25
 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
 
26
 */
 
27
class ShowCommandTest
 
28
    extends CommandTestSupport
 
29
{
 
30
    void testShow() {
 
31
        try {
 
32
            shell << 'show'
 
33
            fail()
 
34
        }
 
35
        catch (CommandException expected) {}
 
36
    }
 
37
}