List of usage examples for java.lang AssertionError AssertionError
public AssertionError()
From source file:com.alexshabanov.springrestapi.support.ProfileController.java
@RequestMapping(value = CONCRETE_PROFILE_RESOURCE, method = RequestMethod.DELETE) @ResponseBody//w w w . j a va2 s . c o m @ResponseStatus(HttpStatus.NO_CONTENT) public void deleteProfile(@PathVariable("id") long id) { throw new AssertionError(); // should be mocked }
From source file:net.lmxm.ute.executers.tasks.subversion.SubversionRepositoryLocationUtils.java
/** * Instantiates a new subversion repository location utils. */ private SubversionRepositoryLocationUtils() { throw new AssertionError(); }
From source file:cz.lidinsky.editor.Menu.java
protected JMenuItem loadMenuItem(Properties settings, String key) { try {//from w w w . ja v a 2 s . co m String temp = settings.getProperty(key + "_menu_items"); JMenuItem menuItem; if (temp != null) { JMenu menu = new JMenu(); String menuItems[] = temp.split(" "); for (String item : menuItems) { if (item.equals("|")) { menu.add(new JSeparator()); } else { menu.add(loadMenuItem(settings, item)); } } menuItem = menu; } else { menuItem = new JMenuItem(); } // set the menu item label setLabel(menuItem, settings.getProperty(key + "_menu_label")); // action String actionKey = settings.getProperty(key + "_menu_action"); if (actionKey != null) { menuItem.setAction(Action.getAction(settings, actionKey)); } return menuItem; } catch (Exception e) { // TODO: throw new AssertionError(); } }
From source file:com.nabla.project.fronter.KataBowling.java
public KataBowling() { throw new AssertionError(); }
From source file:br.com.nordestefomento.jrimum.utilix.StringUtil.java
/** * <p>/*from w w w. j a v a 2 s . c o m*/ * Construtor privado que previne a instanciao da classe at por * reflection * </p> * * @since 0.2 */ private StringUtil() { throw new AssertionError(); }
From source file:com.cloudbees.mtslaves.client.ServerExceptionTest.java
private Void clientside(Exception x1) throws Exception { try {/*from w w w. ja v a2 s. c o m*/ clientside2(x1); throw new AssertionError(); } catch (ServerException x) { throw new Exception("wrapped", x); } }
From source file:com.microsoft.services.msa.AccessTokenRequest.java
/** * Constructs a new AccessTokenRequest, and initializes its member variables * * @param client the HttpClient to make HTTP requests on * @param clientId the client_id of the calling application * @param code the authorization code received from the AuthorizationRequest *//*from w ww .j av a2s .c o m*/ public AccessTokenRequest(final HttpClient client, final String clientId, final String code, final OAuthConfig oAuthConfig) { super(client, clientId, oAuthConfig); if (TextUtils.isEmpty(code)) throw new AssertionError(); this.code = code; this.grantType = OAuth.GrantType.AUTHORIZATION_CODE; }
From source file:net.lmxm.ute.UteTestAssert.java
/** * Instantiates a new ute test assert. */ private UteTestAssert() { throw new AssertionError(); }
From source file:com.vaguehope.onosendai.util.HttpHelper.java
private HttpHelper() { throw new AssertionError(); }
From source file:com.alexshabanov.springrestapi.support.ProfileController.java
@RequestMapping(value = CONCRETE_PROFILE_RESOURCE, method = RequestMethod.PUT) @ResponseBody// www.j a va2 s . c o m @ResponseStatus(HttpStatus.NO_CONTENT) public void putProfile(@PathVariable("id") long id, @RequestBody Profile profile) { throw new AssertionError(); // should be mocked }