Skip to content

Commit

Permalink
move it to representation, as it was about subclasses, relates to #6
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioaniche committed Jul 30, 2020
1 parent fbf0888 commit 6b0f3ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
/*
* 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.
*/
// code from cassandra
package org.apache.cassandra.utils.memory;

import java.nio.ByteBuffer;
Expand All @@ -26,7 +10,7 @@
import org.apache.cassandra.db.rows.Row;
import org.apache.cassandra.utils.ByteBufferUtil;

public abstract class AbstractAllocator
public abstract class Subclasses
{
/**
* Allocate a slice of the given length.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.sergdelft.j2graph.realclasses;
package com.github.sergdelft.j2graph.representation;

import com.github.sergdelft.j2graph.TestBase;
import com.github.sergdelft.j2graph.graph.ClassGraph;
Expand All @@ -7,13 +7,12 @@
import static org.assertj.core.api.Assertions.assertThat;

/**
* This was failing, mostly because we were not handling
* sub classes correctly.
* This is somewhat related to #6
* For now, we ignore subclasses.
* This is related to #6
*/
public class AbstractAllocatorTest extends TestBase {
public class SubclassesTest extends TestBase {

private ClassGraph graph = run("realclasses/AbstractAllocator.java");
private ClassGraph graph = run("representation/SubClasses.java");

@Test
void ignore_sub_classes() {
Expand Down

0 comments on commit 6b0f3ff

Please sign in to comment.