Search Results
OK to copy?
Examples 1 through 10 of
184 (0.03 seconds)
Class:
org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisorTests
©,
Rating:
0% of 0,
C1
Class: org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatViewWithCustomMappingsTests ©, Rating: 0% of 0, C1
Class: org.apache.catalina.util.ServerInfo ©, Rating: 0% of 0, C1
Class: org.apache.naming.factory.OpenEjbFactory ©, Rating: 0% of 0, C2
Class: org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatViewTests ©, Rating: 0% of 0, C1
Class: org.springframework.jdbc.core.support.JdbcBeanDefinitionReader ©, Rating: 0% of 0, C1
Class: org.apache.jmeter.util.NameUpdater ©, Rating: 0% of 0, C1
Class: org.springframework.transaction.interceptor.TransactionInterceptorTests ©, Rating: 0% of 0, C1
Class: org.springframework.beans.propertyeditors.PropertiesEditor ©, Rating: 0% of 0, C1
Class: org.springframework.beans.propertyeditors.PropertiesEditor ©, Rating: 0% of 0, C1
35 public void testSerializability() throws Exception {
36 TransactionInterceptor ti = new TransactionInterceptor();
37 ti.setTransactionAttributes(new Properties());
38 TransactionAttributeSourceAdvisor tas = new TransactionAttributeSourceAdvisor(ti);
39 SerializationTestUtils.serializeAndDeserialize(tas);
Class: org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatViewWithCustomMappingsTests ©, Rating: 0% of 0, C1
29 view.setFormatKey("fmt");
30
31 Properties props = new Properties();
32 props.setProperty("comma-separated", JasperReportsCsvView.class.getName());
33 props.setProperty("html", JasperReportsHtmlView.class.getName());
Class: org.apache.catalina.util.ServerInfo ©, Rating: 0% of 0, C1
47 InputStream is = ServerInfo.class.getResourceAsStream
48 ("/org/apache/catalina/util/ServerInfo.properties");
49 Properties props = new Properties();
50 props.load(is);
51 is.close();
Class: org.apache.naming.factory.OpenEjbFactory ©, Rating: 0% of 0, C2
71 }
72
73 Properties env = new Properties();
74 env.put(Context.INITIAL_CONTEXT_FACTORY, factory);
75
Class: org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatViewTests ©, Rating: 0% of 0, C1
53 String headerValue = "inline; filename=foo.txt";
54
55 Properties mappings = new Properties();
56 mappings.put("csv", headerValue);
57
Class: org.springframework.jdbc.core.support.JdbcBeanDefinitionReader ©, Rating: 0% of 0, C1
76 */
77 public void loadBeanDefinitions(String sql) {
78 final Properties props = new Properties();
79 this.jdbcTemplate.query(sql, new RowCallbackHandler() {
80 public void processRow(ResultSet rs) throws SQLException {
Class: org.apache.jmeter.util.NameUpdater ©, Rating: 0% of 0, C1
Class: org.springframework.transaction.interceptor.TransactionInterceptorTests ©, Rating: 0% of 0, C1
58 public void testSerializableWithAttributeProperties() throws Exception {
59 TransactionInterceptor ti = new TransactionInterceptor();
60 Properties p = new Properties();
61 p.setProperty("methodName", "PROPAGATION_REQUIRED");
62 ti.setTransactionAttributes(p);
Class: org.springframework.beans.propertyeditors.PropertiesEditor ©, Rating: 0% of 0, C1
69 public void setValue(Object value) {
70 if (!(value instanceof Properties) && value instanceof Map) {
71 Properties props = new Properties();
72 props.putAll((Map) value);
73 super.setValue(props);
Class: org.springframework.beans.propertyeditors.PropertiesEditor ©, Rating: 0% of 0, C1
52 throw new IllegalArgumentException("Cannot set Properties to null");
53 }
54 Properties props = new Properties();
55 try {
56 props.load(new ByteArrayInputStream(text.getBytes()));