jdk/test/javax/sql/testng/util/StubContext.java
author lancea
Fri, 31 Oct 2014 13:21:51 -0400
changeset 27338 826d3d9a874a
permissions -rw-r--r--
8062558: Add javax/sql/rowset/spi tests Reviewed-by: joehw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27338
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     1
/*
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     4
 *
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     7
 * published by the Free Software Foundation.
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     8
 *
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    13
 * accompanied this code).
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    14
 *
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    18
 *
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    21
 * questions.
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    22
 */
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    23
package util;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    24
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    25
import java.util.Hashtable;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    26
import javax.naming.Binding;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    27
import javax.naming.Context;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    28
import javax.naming.Name;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    29
import javax.naming.NameClassPair;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    30
import javax.naming.NameParser;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    31
import javax.naming.NamingEnumeration;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    32
import javax.naming.NamingException;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    33
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    34
@SuppressWarnings("unchecked")
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    35
public class StubContext implements Context {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    36
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    37
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    38
    public Object lookup(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    39
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    40
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    41
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    42
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    43
    public Object lookup(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    44
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    45
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    46
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    47
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    48
    public void bind(Name name, Object obj) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    49
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    50
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    51
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    52
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    53
    public void bind(String name, Object obj) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    54
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    55
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    56
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    57
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    58
    public void rebind(Name name, Object obj) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    59
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    60
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    61
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    62
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    63
    public void rebind(String name, Object obj) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    64
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    65
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    66
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    67
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    68
    public void unbind(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    69
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    70
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    71
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    72
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    73
    public void unbind(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    74
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    75
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    76
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    77
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    78
    public void rename(Name oldName, Name newName) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    79
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    80
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    81
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    82
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    83
    public void rename(String oldName, String newName) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    84
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    85
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    86
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    87
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    88
    public NamingEnumeration<NameClassPair> list(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    89
        return new NamingEnumerationStub();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    90
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    91
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    92
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    93
    public NamingEnumeration<NameClassPair> list(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    94
        return new NamingEnumerationStub();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    95
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    96
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    97
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    98
    public NamingEnumeration<Binding> listBindings(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
    99
        return new NamingEnumerationStub();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   100
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   101
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   102
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   103
    public NamingEnumeration<Binding> listBindings(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   104
        return new NamingEnumerationStub();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   105
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   106
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   107
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   108
    public void destroySubcontext(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   109
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   110
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   111
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   112
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   113
    public void destroySubcontext(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   114
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   115
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   116
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   117
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   118
    public Context createSubcontext(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   119
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   120
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   121
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   122
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   123
    public Context createSubcontext(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   124
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   125
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   126
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   127
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   128
    public Object lookupLink(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   129
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   130
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   131
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   132
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   133
    public Object lookupLink(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   134
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   135
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   136
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   137
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   138
    public NameParser getNameParser(Name name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   139
        return new NameParserStub();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   140
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   141
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   142
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   143
    public NameParser getNameParser(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   144
        return new NameParserStub();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   145
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   146
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   147
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   148
    public Name composeName(Name name, Name prefix) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   149
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   150
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   151
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   152
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   153
    public String composeName(String name, String prefix) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   154
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   155
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   156
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   157
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   158
    public Object addToEnvironment(String propName, Object propVal) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   159
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   160
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   161
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   162
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   163
    public Object removeFromEnvironment(String propName) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   164
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   165
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   166
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   167
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   168
    public Hashtable<?, ?> getEnvironment() throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   169
        return new Hashtable();
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   170
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   171
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   172
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   173
    public void close() throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   174
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   175
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   176
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   177
    @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   178
    public String getNameInNamespace() throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   179
        return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   180
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   181
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   182
    class NamingEnumerationStub implements NamingEnumeration {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   183
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   184
        @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   185
        public Object next() throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   186
            return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   187
        }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   188
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   189
        @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   190
        public boolean hasMore() throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   191
            return false;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   192
        }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   193
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   194
        @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   195
        public void close() throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   196
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   197
        }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   198
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   199
        @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   200
        public boolean hasMoreElements() {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   201
            return false;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   202
        }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   203
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   204
        @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   205
        public Object nextElement() {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   206
            return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   207
        }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   208
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   209
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   210
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   211
    class NameParserStub implements NameParser {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   212
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   213
        @Override
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   214
        public Name parse(String name) throws NamingException {
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   215
            return null;
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   216
        }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   217
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   218
    }
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   219
826d3d9a874a 8062558: Add javax/sql/rowset/spi tests
lancea
parents:
diff changeset
   220
}