List of usage examples for org.apache.commons.lang3.builder ReflectionToStringBuilder toString
public static String toString(final Object object)
Builds a toString
value using the default ToStringStyle
through reflection.
From source file:ph.rye.spring352.MrBean1Test.java
@Test public void testSpelOnjection() { Assert.assertTrue(ReflectionToStringBuilder.toString(mrBean).matches(".*\\[field1=1\\]")); }
From source file:ph.rye.spring352.MrBean2Test.java
@Test public void testSpelOnjection() { Assert.assertTrue(ReflectionToStringBuilder.toString(mrBean).matches(".*\\[field1=3\\.14\\d*\\]")); }
From source file:ph.rye.spring352.MrBean3Test.java
@Test public void testSpelOnjection() { Assert.assertTrue(ReflectionToStringBuilder.toString(mrBean).matches(".*\\[greeting=Hello\\]")); }
From source file:ph.rye.spring352.MrBean4Test.java
@Test public void testSpelOnjection() { Assert.assertTrue(ReflectionToStringBuilder.toString(mrBean).matches(".*\\[greeting=HELLO\\]")); }
From source file:syncthing.android.ui.session.DeviceCard.java
public void setConnectionInfo(ConnectionInfo connection) { Timber.d("setConnectionInfo(%s)", ReflectionToStringBuilder.toString(connection)); if (connection == null) { connected = false;//from w w w .jav a2 s.c o m notifyChange(syncthing.android.BR.inbps); notifyChange(syncthing.android.BR.inBytesTotal); notifyChange(syncthing.android.BR.outbps); notifyChange(syncthing.android.BR.outBytesTotal); notifyChange(syncthing.android.BR.address); notifyChange(syncthing.android.BR.clientVersion); notifyChange(syncthing.android.BR.connected); notifyChange(syncthing.android.BR.paused); } else { if (inbps != connection.inbps) { inbps = connection.inbps; notifyChange(syncthing.android.BR.inbps); } if (inBytesTotal != connection.inBytesTotal) { inBytesTotal = connection.inBytesTotal; notifyChange(syncthing.android.BR.inBytesTotal); } if (outbps != connection.outbps) { outbps = connection.outbps; notifyChange(syncthing.android.BR.outbps); } if (outBytesTotal != connection.outBytesTotal) { outBytesTotal = connection.outBytesTotal; notifyChange(syncthing.android.BR.outBytesTotal); } if (!StringUtils.equals(address, connection.address)) { address = connection.address; notifyChange(syncthing.android.BR.address); } if (!StringUtils.equals(clientVersion, connection.clientVersion)) { clientVersion = connection.clientVersion; notifyChange(syncthing.android.BR.clientVersion); } if (connected != connection.connected) { connected = connection.connected; notifyChange(syncthing.android.BR.connected); } if (paused != connection.paused) { paused = connection.paused; notifyChange(syncthing.android.BR.paused); } } }