@Test public void it_composes_a_log_message() { String message = classUnderTest.compose("DEBUG", "TEST TAG", "TEST MESSAGE"); assertEquals("DEBUG dummyIdentifier - 1.0.0 - dummydevice - dummyconnectiontype - TEST TAG - TEST MESSAGE", message); }
public String compose(String level, String tag, String message) { return level + " " + mIdentifier + " - " + mAppVersion + " - " + mDeviceInformation.getDeviceName() + " - " + mDeviceInformation.getConnectionType() + " - " + tag + " - " + message; }
LogComposer { public String compose(String level, String tag, String message) { return level + " " + mIdentifier + " - " + mAppVersion + " - " + mDeviceInformation.getDeviceName() + " - " + mDeviceInformation.getConnectionType() + " - " + tag + " - " + message; } }
LogComposer { public String compose(String level, String tag, String message) { return level + " " + mIdentifier + " - " + mAppVersion + " - " + mDeviceInformation.getDeviceName() + " - " + mDeviceInformation.getConnectionType() + " - " + tag + " - " + message; } LogComposer(DeviceInformation deviceInformation, String identifier, String appVersion); }
LogComposer { public String compose(String level, String tag, String message) { return level + " " + mIdentifier + " - " + mAppVersion + " - " + mDeviceInformation.getDeviceName() + " - " + mDeviceInformation.getConnectionType() + " - " + tag + " - " + message; } LogComposer(DeviceInformation deviceInformation, String identifier, String appVersion); String compose(String level, String tag, String message); }
LogComposer { public String compose(String level, String tag, String message) { return level + " " + mIdentifier + " - " + mAppVersion + " - " + mDeviceInformation.getDeviceName() + " - " + mDeviceInformation.getConnectionType() + " - " + tag + " - " + message; } LogComposer(DeviceInformation deviceInformation, String identifier, String appVersion); String compose(String level, String tag, String message);  }