Package org.junit.platform.commons.util
Class ToStringBuilder
- java.lang.Object
-
- org.junit.platform.commons.util.ToStringBuilder
-
@API(status=INTERNAL, since="1.0") public class ToStringBuilder extends java.lang.Object
Simple builder for generating strings in custom implementations oftoString()
.DISCLAIMER
These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!
- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description ToStringBuilder(java.lang.Class<?> type)
ToStringBuilder(java.lang.Object obj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ToStringBuilder
append(java.lang.String name, java.lang.Object value)
java.lang.String
toString()
-
-
-
Method Detail
-
append
public ToStringBuilder append(java.lang.String name, java.lang.Object value)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-