001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.assertions; 014 015import org.apache.juneau.internal.*; 016 017/** 018 * Used for assertion calls against booleans. 019 */ 020@FluentSetters(returns="BooleanAssertion") 021public class BooleanAssertion extends FluentBooleanAssertion<BooleanAssertion> { 022 023 /** 024 * Creator. 025 * 026 * @param value The object being wrapped. 027 * @return A new {@link BooleanAssertion} object. 028 */ 029 public static BooleanAssertion create(Boolean value) { 030 return new BooleanAssertion(value); 031 } 032 033 /** 034 * Creator. 035 * 036 * @param value The object being wrapped. 037 */ 038 public BooleanAssertion(Boolean value) { 039 super(value, null); 040 } 041 042 @Override 043 protected BooleanAssertion returns() { 044 return this; 045 } 046 047 // <FluentSetters> 048 049 @Override /* GENERATED - Assertion */ 050 public BooleanAssertion msg(String msg, Object...args) { 051 super.msg(msg, args); 052 return this; 053 } 054 055 @Override /* GENERATED - Assertion */ 056 public BooleanAssertion stderr() { 057 super.stderr(); 058 return this; 059 } 060 061 @Override /* GENERATED - Assertion */ 062 public BooleanAssertion stdout() { 063 super.stdout(); 064 return this; 065 } 066 067 // </FluentSetters> 068}