MD5Test.java :  » HTTP » http-impersonator » com » thoughtworks » impersonator » http » util » Java Open Source

Java Open Source » HTTP » http impersonator 
http impersonator » com » thoughtworks » impersonator » http » util » MD5Test.java
package com.thoughtworks.impersonator.http.util;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

import org.junit.Test;

public class MD5Test {

    @Test
    public void shouldCalculateMD5FromString() throws Exception {
        assertThat(MD5.hashData("foobar"), is("3858F62230AC3C915F300C664312C63F"));
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.