You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
463 B
23 lines
463 B
package com.platform.test;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
import org.junit.Test;
|
|
|
|
import com.platform.entities.CheckoutEntity;
|
|
|
|
public class MapTest {
|
|
|
|
@Test
|
|
public void TestRemove(){
|
|
Map<String, CheckoutEntity> map = new HashMap<String, CheckoutEntity>();
|
|
CheckoutEntity t = new CheckoutEntity();
|
|
t.setId(21);
|
|
map.put("12", t);
|
|
CheckoutEntity tmp = map.remove("12");
|
|
System.out.println(tmp.getId());
|
|
}
|
|
|
|
}
|