/* ******************************************************************* * Copyright (c) 2004 IBM Corporation * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public License v1.0 * which accompanies this distribution and is available at * http://www.eclipse.org/legal/epl-v10.html * * ******************************************************************/ package org.aspectj.systemtest.java14; import java.io.File; import junit.framework.Test; import org.aspectj.testing.XMLBasedAjcTestCase; import org.aspectj.util.LangUtil; public class Java14Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public static Test suite() { return XMLBasedAjcTestCase.loadSuite(Java14Tests.class); } protected File getSpecFile() { return new File("../tests/src/org/aspectj/systemtest/java14/java14.xml"); } public void test001(){ runTest("assert flow"); } public void test002(){ runTest("assert flow - 2"); } public void test003(){ runTest("assert typing"); } // bug in eclipse compiler, moved to ajcTestsFailing.xml // public void test004(){ // runTest("assert coverage tests [requires 1.4]"); // } // bug in eclipse compiler, moved to ajcTestsFailing.xml // public void test005(){ // runTest("assert coverage tests in one package [requires 1.4]"); // } public void test006(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 006 not >=1.4");return;} runTest("compiling asserts in methods"); } public void test007(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 007 not >=1.4");return;} runTest("asserts"); } public void test008(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 008 not >=1.4");return;} runTest("asserts in aspect and declared methods [requires 1.4]"); } public void test009(){ runTest("Does the matrix coverage thing for the new method signatures"); } public void test010(){ runTest("correct types of parameters at call-sites"); } public void test011(){ runTest("target type matching with messy interface hierarchies"); } public void test012(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 012 not >=1.4");return;} runTest("assert tests in introduction [requires 1.4]"); } public void test013(){ runTest("various forms of package name pattern matching work"); } public void test014(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 014 not >=1.4");return;} runTest("assert statement in advice coverage [requires 1.4]"); } public void test015(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 015 not >=1.4");return;} runTest("assert statement in advice [requires 1.4]"); } public void test016(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 016 not >=1.4");return;} runTest("assert and pertarget crashes compiler"); } public void test017(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 017 not >=1.4");return;} runTest("testing that assert works like .class"); } public void test018(){ runTest("JoinPoint Optimization when targetting 1.4"); } public void test019(){ runTest("XLint warning for call PCD's using subtype of defining type (-1.4 -Xlint:ignore)"); } // public void test020(){ // runTest("XLint warning for call PCD's using subtype of defining type (-1.4)"); // } public void test021(){ if (!LangUtil.is14VMOrGreater()) { System.err.println("Skipping test 021 not >=1.4");return;} runTest("Class Literals as non final fields (also assert, and this$0)"); } } > JGit, the Java implementation of git: https://github.com/eclipse-jgit/jgitwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/api/errors/WrongRepositoryStateException.java
blob: 4b5871149e937314c2dc7c9e705f97631decaf3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * Copyright (C) 2010, Christian Halstrick <christian.halstrick@sap.com> and
 * other copyright owners as documented in the project's IP log.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v1.0 which accompanies this
 * distribution, is reproduced below, and is available at
 * http://www.eclipse.org/org/documents/edl-v10.php
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * - Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * - Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * - Neither the name of the Eclipse Foundation, Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package org.eclipse.jgit.api.errors;

/**
 * Exception thrown when the state of the repository doesn't allow the execution
 * of a certain command. E.g. when a CommitCommand should be executed on a
 * repository with unresolved conflicts this exception will be thrown.
 */
public class WrongRepositoryStateException extends GitAPIException {
	private static final long serialVersionUID = 1L;

	/**
	 * Constructor for WrongRepositoryStateException.
	 *
	 * @param message
	 *            error message
	 * @param cause
	 *            a {@link java.lang.Throwable}
	 */
	public WrongRepositoryStateException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * Constructor for WrongRepositoryStateException.
	 *
	 * @param message
	 *            error message
	 */
	public WrongRepositoryStateException(String message) {
		super(message);
	}
}