Skip to content
  • This project
    • Loading...
  • Sign in

ethan / CAT

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • CAT
  • ..
  • cat
  • MessageFomatTest.java
  • ethan's avatar
    CAT_1.4.0 原始版本 · 9b3ddcc4
    ethan committed 2017-08-15 10:01:32 +0800
    9b3ddcc4
MessageFomatTest.java 405 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package com.dianping.cat;

import java.text.MessageFormat;
import java.text.ParseException;

import org.junit.Test;

public class MessageFomatTest {

	@Test
	public void test(){
		String str="/topic/s_c_2_0_r0123123123/123123123";
		MessageFormat format = new MessageFormat("/topic/{0}");
		
		try {
	      format.parse(str);
      } catch (ParseException e) {
	      e.printStackTrace();
      }
		
	}
}