cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <...@git.apache.org>
Subject [GitHub] cloudstack pull request #1624: Fixes regarding VOLUME_DELETE events resultin...
Date Wed, 10 Aug 2016 19:33:45 GMT
Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1624#discussion_r74314203
  
    --- Diff: server/test/com/cloud/user/MockUsageEventDao.java ---
    @@ -0,0 +1,356 @@
    +// 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 com.cloud.user;
    +
    +import java.util.ArrayList;
    +import java.util.Date;
    +import java.util.List;
    +import java.util.Map;
    +
    +import javax.naming.ConfigurationException;
    +
    +import com.cloud.event.UsageEventVO;
    +import com.cloud.event.dao.UsageEventDao;
    +import com.cloud.utils.Pair;
    +import com.cloud.utils.db.Attribute;
    +import com.cloud.utils.db.Filter;
    +import com.cloud.utils.db.GenericSearchBuilder;
    +import com.cloud.utils.db.SearchBuilder;
    +import com.cloud.utils.db.SearchCriteria;
    +
    +public class MockUsageEventDao implements UsageEventDao{
    +
    +    List<UsageEventVO> persistedItems;
    +
    +    public MockUsageEventDao() {
    +        persistedItems = new ArrayList<UsageEventVO>();
    +    }
    +
    +    @Override
    +    public UsageEventVO findById(Long id) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO findByIdIncludingRemoved(Long id) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO findById(Long id, boolean fresh) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO findByUuid(String uuid) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO findByUuidIncludingRemoved(String uuid) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO createForUpdate() {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public SearchBuilder<UsageEventVO> createSearchBuilder() {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public <K> GenericSearchBuilder<UsageEventVO, K> createSearchBuilder(
    +            Class<K> clazz) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO createForUpdate(Long id) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public SearchCriteria<UsageEventVO> createSearchCriteria() {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public List<UsageEventVO> lockRows(SearchCriteria<UsageEventVO> sc,
    +            Filter filter, boolean exclusive) {
    +        // TODO Auto-generated method stub
    +        return null;
    +    }
    +
    +    @Override
    +    public UsageEventVO lockOneRandomRow(SearchCriteria<UsageEventVO> sc,
    +            boolean exclusive) {
    +        // TODO Auto-generated method stub
    --- End diff --
    
    Is there a TODO to be resolved?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message