View Javadoc

1   package org.apache.archiva.consumers.lucene.stubs;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import org.apache.maven.archiva.database.ArchivaDAO;
23  import org.apache.maven.archiva.database.ArtifactDAO;
24  import org.apache.maven.archiva.database.ProjectModelDAO;
25  import org.apache.maven.archiva.database.RepositoryContentStatisticsDAO;
26  import org.apache.maven.archiva.database.RepositoryProblemDAO;
27  import org.apache.maven.archiva.database.SimpleConstraint;
28  
29  import java.io.Serializable;
30  import java.util.List;
31  
32  /**
33   * Using a stub for faster tests! Not really used for the unit tests, just for dependency injection.
34   */
35  public class ArchivaDAOStub
36      implements ArchivaDAO
37  {
38  
39      public ArtifactDAO getArtifactDAO()
40      {
41          // TODO Auto-generated method stub
42          return null;
43      }
44  
45      public ProjectModelDAO getProjectModelDAO()
46      {
47          // TODO Auto-generated method stub
48          return null;
49      }
50  
51      public RepositoryContentStatisticsDAO getRepositoryContentStatisticsDAO()
52      {
53          // TODO Auto-generated method stub
54          return null;
55      }
56  
57      public long count( SimpleConstraint constraint )
58      {
59          return 0;  //To change body of implemented methods use File | Settings | File Templates.
60      }
61  
62      public RepositoryProblemDAO getRepositoryProblemDAO()
63      {
64          // TODO Auto-generated method stub
65          return null;
66      }
67  
68      public List<?> query( SimpleConstraint constraint )
69      {
70          // TODO Auto-generated method stub
71          return null;
72      }
73  
74      public Object save( Serializable obj )
75      {
76          // TODO Auto-generated method stub
77          return null;
78      }
79  }