summaryrefslogtreecommitdiff
path: root/qpid/java/management/client/src/test/java/org/apache/qpid/management/TestConstants.java
blob: 9abcd08eef91f286603a3ea51e1d3831a96de467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 */
package org.apache.qpid.management;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.apache.qpid.management.domain.handler.impl.MethodOrEventDataTransferObject;
import org.apache.qpid.management.domain.model.DomainModel;
import org.apache.qpid.management.domain.model.type.Binary;

/**
 * Collects all literal constants used in test cases.
 */
public interface TestConstants
{
    UUID BROKER_ID = UUID.randomUUID();
    Binary OBJECT_ID = new Binary(new byte []{1,2,3,2,1,1,2,3});

    DomainModel DOMAIN_MODEL = new DomainModel(BROKER_ID);    
    
    String AGE_ATTRIBUTE_NAME = "age";
    String AGE_ATTRIBUTE_DESCRIPTION = "The age of a person.";
    String SURNAME_ATTRIBUTE_NAME = "surname";
    String SURNAME_ATTRIBUTE_DESCRIPTION = "The surname of a person.";
    Integer _1 = new Integer(1);
    
    byte [] TEST_RAW_DATA= new byte []{1,4,5,7,8,9,4,44};
    long NOW = System.currentTimeMillis();
    int SEVERITY = _1;

    String QPID_PACKAGE_NAME = "qpid";
    String EXCHANGE_CLASS_NAME = "exchange";
    String BIND_EVENT_NAME = "bind";
    Binary HASH = new Binary(new byte []{1,2,3,4,5,6,7,8,9});
    int VALID_CODE = _1;

    List<Map<String, Object>> EMPTY_PROPERTIES_SCHEMA = new LinkedList<Map<String,Object>>();
    List<Map<String, Object>> EMPTY_STATISTICS_SCHEMA = new LinkedList<Map<String,Object>>();
    List<MethodOrEventDataTransferObject> EMPTY_METHODS_SCHEMA = new LinkedList<MethodOrEventDataTransferObject>();
    List<Map<String, Object>> EMPTY_ARGUMENTS_SCHEMA = new LinkedList<Map<String,Object>>();
	int _0 = 0;
	int SAMPLE_ACCESS_CODE = 1;
	String YEARS = "years";
	int SAMPLE_MIN_VALUE = 1;
	int SAMPLE_MAX_VALUE = 120;		
}