title: How to give a timestamp value as an argument in java?
body: <p>I am learning about unit testing and I want to write a test method for a method which converts a string to timestamp. The return type of the method is Timestamp and the parameter is String. I know that the function returns the correct value when I debug it. For example if the input is <code>"07.10.2018 08:45:00"</code>, then the value returned should be <code>2018-10-07 08:45:00.0</code> (of type timestamp). How do I pass this value to assertEquals in test method? What is the correct format of passing a Timestamp value to a function? </p>
  
  <p>Or is there any other way for testing it?</p>
  
  <pre><code>public void test() {
          IDManager  test = new IDManager();
  
          Timestamp output = test.convertStringToTimestamp("07.10.2018 08:45:00");
          //assertEquals(2018-10-07 08:45:00.0,output );
      }
  </code></pre>