// Path: src/main/java/javascalautils/TryCompanion.java
// public static <T> Failure<T> Failure(Throwable throwable) {
//   return new Failure<>(throwable);
// }
// 
// Path: src/main/java/javascalautils/TryCompanion.java
// public static <T> Success<T> Success(T value) {
//   return new Success<>(value);
// }
// 
// Path: src/main/java/javascalautils/TryCompanion.java
// public static Try<Unit> Try(VoidFunction0 function) {
//   return Try.apply(
//       () -> {
//         function.apply();
//         return Unit.Instance;
//       });
// }


import static javascalautils.TryCompanion.Failure;
import static javascalautils.TryCompanion.Success;
import static javascalautils.TryCompanion.Try;
import org.junit.Test;
/**
 * Copyright 2015 Peter Nerg
 *
 * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of the License at
 *
 * <p>http://www.apache.org/licenses/LICENSE-2.0
 *
 * <p>Unless required by applicable law or agreed to in writing, software distributed under the
 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing permissions and
 * limitations under the License.
 */
package javascalautils;



/**
 * Test the class {@link TryCompanion}
 *
 * @author Peter Nerg
 */
public class TestTryCompanion extends BaseAssert {

  @Test
  public void createInstance() throws ReflectiveOperationException {
    assertPrivateConstructor(TryCompanion.class);
  }

// Path: src/main/java/javascalautils/TryCompanion.java
// public static <T> Failure<T> Failure(Throwable throwable) {
//   return new Failure<>(throwable);
// }
// 
// Path: src/main/java/javascalautils/TryCompanion.java
// public static <T> Success<T> Success(T value) {
//   return new Success<>(value);
// }
// 
// Path: src/main/java/javascalautils/TryCompanion.java
// public static Try<Unit> Try(VoidFunction0 function) {
//   return Try.apply(
//       () -> {
//         function.apply();
//         return Unit.Instance;
//       });
// }


// Path: src/test/java/javascalautils/TestTryCompanion.java
import static javascalautils.TryCompanion.Failure;
import static javascalautils.TryCompanion.Success;
import static javascalautils.TryCompanion.Try;
import org.junit.Test;

/**
 * Copyright 2015 Peter Nerg
 *
 * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of the License at
 *
 * <p>http://www.apache.org/licenses/LICENSE-2.0
 *
 * <p>Unless required by applicable law or agreed to in writing, software distributed under the
 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing permissions and
 * limitations under the License.
 */
package javascalautils;



/**
 * Test the class {@link TryCompanion}
 *
 * @author Peter Nerg
 */
public class TestTryCompanion extends BaseAssert {

  @Test
  public void createInstance() throws ReflectiveOperationException {
    assertPrivateConstructor(TryCompanion.class);
  }

  @Test