1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.plugin
.multivm
;
13 * Results on test information.
17 public final class ResultantTestInfo
19 /** The name of the test. */
20 public final String name
;
22 /** The result of the test, if it passed or not. */
23 public final VMTestResult result
;
25 /** The duration of the test. */
26 public final long nanoseconds
;
29 * Stores the resultant test information.
31 * @param __name The name of the test.
32 * @param __result The result of the test.
33 * @param __nanoseconds The nanoseconds of the test.
34 * @throws NullPointerException On null arguments.
37 public ResultantTestInfo(String __name
, VMTestResult __result
,
39 throws NullPointerException
41 if (__name
== null || __result
== null)
42 throw new NullPointerException("NARG");
45 this.result
= __result
;
46 this.nanoseconds
= __nanoseconds
;