input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testModifyingName ( ) { org . pentaho . di . core . database . DatabaseMeta databaseMeta = mock ( org . pentaho . di . core . database . DatabaseMeta . class ) ; org . pentaho . di . core . database . OracleDatabaseMeta odbm = new org . pentaho . di . core . database . OracleDatabaseMeta ( ) ; doCallRealMethod ( ) . wh...
org . junit . Assert . assertTrue ( ( ! ( databaseMeta . getDisplayName ( ) . equals ( databaseMeta2 . getDisplayName ( ) ) ) ) )
get_exception_mapper ( ) { com . amazon . ask . request . exception . mapper . impl . BaseExceptionMapper exceptionMapper = mock ( com . amazon . ask . request . exception . mapper . impl . BaseExceptionMapper . class ) ; com . amazon . ask . builder . GenericSkillConfiguration config = com . amazon . ask . builder . T...
org . junit . Assert . assertEquals ( exceptionMapper , config . getExceptionMapper ( ) )
backhaulViolationOnSolution_shouldWorkWhenViolated ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . analysis . SolutionAnalyser analyser = new com . graphhopper . jsprit . core . analysis . SolutionAnalyser ( vrp , solution , vrp . getTransportCosts ( ...
org . junit . Assert . assertTrue ( violated )
shouldDeriveViewParametersAndReduce ( ) { long count = repository . countByUsernameGreaterThanEqualAndUsernameLessThan ( "uname-8" , "uname-9" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 12 , count )
testToJson_ColorWithAlpha_null ( ) { org . eclipse . rap . json . JsonValue result = org . eclipse . rap . rwt . remote . JsonMapping . toJson ( ( ( org . eclipse . swt . graphics . Color ) ( null ) ) , 23 ) ; "<AssertPlaceHolder>" ; } toJson ( org . eclipse . swt . graphics . Color , int ) { if ( ( alpha < 0 ) || ( al...
org . junit . Assert . assertEquals ( JsonValue . NULL , result )
simpleAddition ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 4 , ( 2 + 2 ) )
testComputation_8 ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "package<sp>foo" ) ; _builder . newLine ( ) ; _builder . newLine ( ) ; _builder . append ( "/**" ) ; _builder . newLine ( ) ; _builder . append ( "...
org . junit . Assert . assertEquals ( 1 , regions . size ( ) )
toString_A$ ( ) { com . m3 . scalaflavor4j . Either < java . lang . String , java . lang . Integer > target = com . m3 . scalaflavor4j . Right . apply ( 123 ) ; java . lang . String actual = target . toString ( ) ; java . lang . String expected = "Right(123)" ; "<AssertPlaceHolder>" ; } toString ( ) { return "<function...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
noDefaultPhenotypeMapping ( ) { "<AssertPlaceHolder>" ; } getPhenotypeMapping ( ) { return this . phenotypeMapping ; }
org . junit . Assert . assertNull ( this . component . getPhenotypeMapping ( ) )
implementation_setToGuava ( ) { eventBusService . init ( com . google . common . collect . ImmutableMap . of ( EventBusServiceDefault . KEY_EVENT_BUS_IMPLEMENTATION , "guava" ) ) ; "<AssertPlaceHolder>" ; } getImplementation ( ) { return implementation ; }
org . junit . Assert . assertThat ( eventBusService . getImplementation ( ) , org . hamcrest . Matchers . is ( "guava" ) )
testGetTalendVersion ( ) { org . talend . utils . ProductVersion talendVersion = org . talend . utils . ProductVersion . fromString ( org . talend . commons . utils . VersionUtils . getTalendVersion ( ) ) ; org . talend . utils . ProductVersion studioVersion = org . talend . utils . ProductVersion . fromString ( org . ...
org . junit . Assert . assertEquals ( studioVersion , talendVersion )
testInvalidRemove ( ) { com . sun . sgs . test . app . util . TestScalableHashMap . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { java . util . Map < java . lang . Integer , java . lang . Integer...
org . junit . Assert . assertEquals ( null , test . remove ( i ) )
requireSucceeds ( ) { org . everit . json . schema . loader . JsonValue actual = createSubject ( ) . require ( "not" ) ; "<AssertPlaceHolder>" ; } of ( java . lang . Object ) { if ( obj instanceof org . everit . json . schema . loader . JsonValue ) { return ( ( org . everit . json . schema . loader . JsonValue ) ( obj ...
org . junit . Assert . assertEquals ( org . everit . json . schema . loader . JsonValue . of ( original . get ( "not" ) ) , actual )
testWrappingCorrectly ( ) { queue = new org . apache . flume . channel . file . FlumeEventQueue ( backingStore , backingStoreSupplier . getInflightTakes ( ) , backingStoreSupplier . getInflightPuts ( ) ) ; int size = Integer . MAX_VALUE ; for ( int i = 1 ; i <= size ; i ++ ) { if ( ! ( queue . addHead ( new org . apach...
org . junit . Assert . assertNotNull ( queue . removeHead ( 0 ) )
testNullSafeGetWhenobjectIsNotPGobject ( ) { java . lang . String [ ] names = new java . lang . String [ ] { "status" } ; java . lang . Object value = new java . lang . Object ( ) ; when ( rs . wasNull ( ) ) . thenReturn ( false ) ; when ( rs . getObject ( anyString ( ) ) ) . thenReturn ( value ) ; java . lang . Object...
org . junit . Assert . assertEquals ( null , actual )
testInvokeWithVarArgsAB ( ) { javax . el . MethodExpression me1 = factory . createMethodExpression ( context , "${beanC.sayHello(beanA,beanB,beanB)}" , null , null ) ; java . lang . Exception e = null ; try { me1 . invoke ( context , null ) ; } catch ( java . lang . Exception e1 ) { e = e1 ; } "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertNotNull ( e )
testRandomOutput ( ) { for ( int i = 0 ; i < 500 ; i ++ ) { java . lang . String str = TestStringUtil . randomString ( 32 ) ; byte [ ] a = str . getBytes ( StandardCharsets . UTF_8 ) ; byte [ ] b = io . gomint . server . util . StringUtil . getUTF8Bytes ( str ) ; "<AssertPlaceHolder>" ; } } getUTF8Bytes ( java . lang ....
org . junit . Assert . assertArrayEquals ( a , b )
testFindAccessibleForOperator ( ) { setAuth ( "SLC<sp>Operator" , null , null ) ; org . slc . sli . api . security . context . PagingRepositoryDelegate < org . slc . sli . domain . Entity > repository = org . mockito . Mockito . mock ( org . slc . sli . api . security . context . PagingRepositoryDelegate . class ) ; or...
org . junit . Assert . assertEquals ( result , returnResult )
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . String abbrName = "abbr<sp>Name" ; java . lang . String name = "n<sp>a<sp>m<sp>e" ; org . lnu . is . resource . street . type . StreetTypeResource source = new org . lnu . is . resource . street . type . StreetTypeResource ( ) ; source . setId ( id ) ; sou...
org . junit . Assert . assertEquals ( expecteds , actuals )
testValidateLimits14 ( ) { java . lang . String string = new java . lang . String ( new int [ ] { 93 } , 0 , 1 ) ; boolean result = org . oscm . validator . ADMValidator . containsOnlyValidIdChars ( string ) ; "<AssertPlaceHolder>" ; } containsOnlyValidIdChars ( java . lang . String ) { if ( value == null ) { return tr...
org . junit . Assert . assertTrue ( result )
respondWithHelpArgumentShouldReturnFalseAndPrintDetailsAboutArguments ( ) { final net . usikkert . kouchat . argument . ArgumentResponder handler = createHandlerWithArguments ( "--help" ) ; "<AssertPlaceHolder>" ; verify ( System . out ) . println ( ( "KouChat<sp>v" + ( net . usikkert . kouchat . Constants . APP_VERSIO...
org . junit . Assert . assertFalse ( handler . respond ( ) )
twoMillionEntries ( ) { "<AssertPlaceHolder>" ; int howMany = 2000000 ; int size = ( mem . capacity ( ) ) / howMany ; size -= ( size / 100 ) * 1 ; org . directmemory . memory . test . MallocTests . logger . info ( ( "payload<sp>size=" + size ) ) ; org . directmemory . memory . test . MallocTests . logger . info ( ( "en...
org . junit . Assert . assertNotNull ( mem )
testWaitUntilReady ( ) { io . fabric8 . kubernetes . api . model . Pod pod1 = new io . fabric8 . kubernetes . api . model . PodBuilder ( ) . withNewMetadata ( ) . withName ( "pod1" ) . withResourceVersion ( "1" ) . withNamespace ( "test" ) . and ( ) . build ( ) ; io . fabric8 . kubernetes . api . model . Pod noReady = ...
org . junit . Assert . assertTrue ( io . fabric8 . kubernetes . client . internal . readiness . Readiness . isPodReady ( p ) )
testSkipImportSSLCertificateOnStart ( ) { java . util . concurrent . atomic . AtomicBoolean certificateImportCalled = new java . util . concurrent . atomic . AtomicBoolean ( ) ; com . vmware . admiral . service . common . harbor . HarborApiProxyService service = new com . vmware . admiral . service . common . harbor . ...
org . junit . Assert . assertFalse ( certificateImportCalled . get ( ) )
joinNodeHaveOneOutgoingControlFlow ( ) { org . eclipse . uml2 . uml . JoinNode node = UMLFactory . eINSTANCE . createJoinNode ( ) ; org . eclipse . uml2 . uml . ControlFlow flow = UMLFactory . eINSTANCE . createControlFlow ( ) ; node . getOutgoings ( ) . add ( flow ) ; "<AssertPlaceHolder>" ; } isValidControlFlowStart ...
org . junit . Assert . assertFalse ( services . isValidControlFlowStart ( node ) )
createsSystemPropertySpecifiedFactory ( ) { java . lang . System . setProperty ( "org.kie.txm.factory.class" , org . drools . persistence . TransactionManagerFactoryTest . TestTransactionManagerFactory . class . getName ( ) ) ; transactionManagerFactory . resetInstance ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { retu...
org . junit . Assert . assertEquals ( org . drools . persistence . TransactionManagerFactoryTest . TestTransactionManagerFactory . class . getName ( ) , transactionManagerFactory . get ( ) . getClass ( ) . getName ( ) )
shouldInstrumentDeclarationAcrossLines ( ) { java . lang . String source = "var<sp>x,\n" + ( ( "<sp>y<sp>=<sp>new<sp>X(function<sp>()<sp>{\n" + "<sp>return<sp>1;\n" ) + "<sp>});" ) ; java . lang . String instrumentedSource = sourceProcessor . instrumentSource ( source ) ; java . lang . String expectedSource = "_$jscove...
org . junit . Assert . assertEquals ( expectedSource , instrumentedSource )
getLastSADataInstancesFromContainer ( ) { final java . util . List < org . bonitasoft . engine . data . instance . model . archive . SADataInstance > archiveInstances = java . util . Collections . emptyList ( ) ; doReturn ( persistenceService ) . when ( archiveService ) . getDefinitiveArchiveReadPersistenceService ( ) ...
org . junit . Assert . assertEquals ( archiveInstances , dataInstances )
testGetToken ( ) { System . out . println ( "Test<sp>of<sp>getToken<sp>method,<sp>of<sp>class<sp>BaseMatch" ) ; me . gosimple . nbvcxz . matching . match . BaseMatch instance = new me . gosimple . nbvcxz . matching . match . BaseMatchTest . BaseMatchImpl ( "dummyToken" ) ; java . lang . String result = instance . getTo...
org . junit . Assert . assertEquals ( "dummyToken" , result )
testCreateNonRecursiveWithExistingDir ( ) { org . apache . hadoop . fs . Path f = getTestRootPath ( org . apache . hadoop . fs . FileContextCreateMkdirBaseTest . fc , "foo" ) ; createFile ( org . apache . hadoop . fs . FileContextCreateMkdirBaseTest . fc , f ) ; "<AssertPlaceHolder>" ; } isFile ( org . apache . hadoop ...
org . junit . Assert . assertTrue ( isFile ( org . apache . hadoop . fs . FileContextCreateMkdirBaseTest . fc , f ) )
fetchBeanPoolStatisticsForSingleton ( ) { javax . json . JsonObject poolStatistics = this . cut . fetchBeanPoolStatistics ( "lightfish" , "Configurator" ) ; "<AssertPlaceHolder>" ; System . out . println ( poolStatistics ) ; } fetchBeanPoolStatistics ( java . lang . String , java . lang . String ) { javax . ws . rs . c...
org . junit . Assert . assertNull ( poolStatistics )
testSetTitleReturnsDescritor ( ) { com . eclipsesource . tabris . internal . ui . PageDescriptor descriptor = new com . eclipsesource . tabris . internal . ui . PageDescriptor ( "foo" , com . eclipsesource . tabris . internal . ui . TestPage . class ) ; com . eclipsesource . tabris . internal . ui . PageDescriptor actu...
org . junit . Assert . assertSame ( descriptor , actualDescriptor )
shouldUseDefaultLockingTimeout ( ) { org . modeshape . jcr . RepositoryConfiguration config = org . modeshape . jcr . RepositoryConfiguration . read ( "{<sp>'name'<sp>=<sp>'nm',<sp>'storage'<sp>:<sp>{}}" ) ; "<AssertPlaceHolder>" ; } getLockTimeoutMillis ( ) { return doc . getLong ( org . modeshape . jcr . RepositoryCo...
org . junit . Assert . assertEquals ( Default . LOCK_TIMEOUT , config . getLockTimeoutMillis ( ) )
testHasMessage ( ) { com . eclipsesource . jaxrs . consumer . internal . RequestError error = mock ( com . eclipsesource . jaxrs . consumer . internal . RequestError . class ) ; when ( error . getMessage ( ) ) . thenReturn ( "foo" ) ; com . eclipsesource . jaxrs . consumer . RequestException exception = new com . eclip...
org . junit . Assert . assertEquals ( "foo" , message )
equals_shouldReturnTrueIfUuidsAreEqual ( ) { org . openmrs . BaseOpenmrsObject o = new org . openmrs . BaseOpenmrsObjectTest . BaseOpenmrsObjectMock ( ) ; org . openmrs . BaseOpenmrsObject obj = new org . openmrs . BaseOpenmrsObjectTest . BaseOpenmrsObjectMock ( ) ; obj . setUuid ( o . getUuid ( ) ) ; "<AssertPlaceHold...
org . junit . Assert . assertTrue ( o . equals ( obj ) )
testUserDefinedProductCacheDirectory ( ) { java . lang . String expectedDir = ( ( workingDir ) + ( java . io . File . separator ) ) + "custom-product-cache" ; resourceCache . setProductCacheDirectory ( expectedDir ) ; "<AssertPlaceHolder>" ; } getProductCacheDirectory ( ) { return productCacheDirectory ; }
org . junit . Assert . assertEquals ( expectedDir , resourceCache . getProductCacheDirectory ( ) )
filter ( ) { java . util . List < java . lang . Object > objects = new java . util . ArrayList < java . lang . Object > ( ) ; objects . add ( comparable ) ; objects . add ( comparable ) ; doReturn ( 0 ) . doReturn ( ( - 1 ) ) . when ( comparable ) . compareTo ( any ( ) ) ; doReturn ( comparable ) . when ( ltFilter ) . ...
org . junit . Assert . assertEquals ( comparable , actualObjects . get ( 0 ) )
testEncapsulatedMethods ( ) { com . gs . obevocomparer . input . CatoDataSource baseDataSource = mock ( com . gs . obevocomparer . input . CatoDataSource . class ) ; com . gs . obevocomparer . input . AbstractCatoWrapperDataSource dataSource = new com . gs . obevocomparer . input . AbstractCatoWrapperDataSourceTest . A...
org . junit . Assert . assertEquals ( "Test<sp>Name" , dataSource . getName ( ) )
countNotNullTest ( ) { dao . count ( new org . easycassandra . persistence . cassandra . ResultAsyncCallBack < java . lang . Long > ( ) { @ org . easycassandra . bean . Override public void result ( java . lang . Long bean ) { "<AssertPlaceHolder>" ; } } ) ; } result ( java . util . List ) { junit . framework . Assert ...
org . junit . Assert . assertNotNull ( bean )
testGetRelationshipsWithOutgoingDirectionWithSingleRelationshipType ( ) { java . lang . Iterable < org . neo4j . graphdb . Relationship > relationships = neo . getRelationships ( org . neo4j . rest . graphdb . OUTGOING , RelTypes . KNOWS ) ; "<AssertPlaceHolder>" ; } match ( org . neo4j . graphdb . Node , org . neo4j ....
org . junit . Assert . assertThat ( relationships , org . neo4j . rest . graphdb . RelationshipHasMatcher . match ( neo , org . neo4j . rest . graphdb . OUTGOING , RelTypes . KNOWS ) )
countTest ( ) { org . nlpcn . es4sql . Aggregations result = query ( java . lang . String . format ( "SELECT<sp>COUNT(*)<sp>FROM<sp>%s/account" , org . nlpcn . es4sql . TEST_INDEX_ACCOUNT ) ) ; org . elasticsearch . search . aggregations . metrics . valuecount . ValueCount count = result . get ( "COUNT(*)" ) ; "<Assert...
org . junit . Assert . assertEquals ( 1000 , count . getValue ( ) )
testCreateAndRetrieveXMLDataById ( ) { final java . lang . String xmlContent = buildSimpleXML1 ( ) ; final long containerId = 15 ; final java . lang . String containerType = "ActivityInstance" ; final org . bonitasoft . engine . data . instance . model . SDataInstance dataInstance = buildXMLDataInstance ( "xmlVar" , "T...
org . junit . Assert . assertTrue ( ( dataInstanceRes instanceof org . bonitasoft . engine . data . instance . model . SXMLDataInstance ) )
testGetAdditionsForNonRepositoryLayerMethod ( ) { final org . springframework . roo . classpath . layers . MemberTypeAdditions additions = layerProvider . getMemberTypeAdditions ( org . springframework . roo . addon . layers . repository . jpa . addon . RepositoryJpaLayerProviderTest . CALLER_MID , "bogus" , mockTarget...
org . junit . Assert . assertNull ( additions )
isEmptyAtomicOpen ( ) { net . time4j . PlainTime tsp = net . time4j . PlainTime . of ( 14 , 45 ) ; "<AssertPlaceHolder>" ; } between ( net . time4j . range . Boundary , net . time4j . range . Boundary ) { return new net . time4j . range . ClockInterval ( start , end ) ; }
org . junit . Assert . assertThat ( net . time4j . range . ClockInterval . between ( tsp , tsp ) . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
detectResultType_should_return_FIELD_OF_TYPE_COLLECTION ( ) { org . springframework . data . simpledb . query . SimpleDbQueryMethod repositoryMethod = prepareQueryMethodToTest ( "sampleListSelect" , org . springframework . data . simpledb . query . SampleEntity . class ) ; org . springframework . data . simpledb . quer...
org . junit . Assert . assertEquals ( MultipleResultExecution . MultipleResultType . FIELD_OF_TYPE_COLLECTION , multipleResultExecution . detectResultType ( repositoryMethod ) )
testCreateRealm ( ) { com . radcortez . wow . auctions . entity . Realm realm = new com . radcortez . wow . auctions . entity . Realm ( ) ; realm . setName ( "Thrall" ) ; realm . setSlug ( "thrall" ) ; realm . setRegion ( "EU" ) ; realm . setStatus ( true ) ; loadRealmsBatchlet . createRealmIfMissing ( realm ) ; realm ...
org . junit . Assert . assertNotNull ( realm . getId ( ) )
testGetMassTruncate ( ) { org . springframework . test . web . servlet . MvcResult result = this . mockMvc . perform ( get ( "/rest/masstruncate" ) . contentType ( MediaType . APPLICATION_ATOM_XML ) . contextPath ( "" ) ) . andReturn ( ) ; "<AssertPlaceHolder>" ; System . out . print ( result ) ; } getResponse ( ) { re...
org . junit . Assert . assertEquals ( 200 , result . getResponse ( ) . getStatus ( ) )
saveConcept_shouldNotFailWhenADuplicateNameIsEditedToAUniqueValue ( ) { executeDataSet ( "org/openmrs/api/include/ConceptServiceTest-conceptWithDuplicateName.xml" ) ; org . openmrs . Concept conceptToEdit = conceptService . getConcept ( 10000 ) ; java . util . Locale locale = new java . util . Locale ( "en" , "GB" ) ; ...
org . junit . Assert . assertTrue ( duplicateNameToEdit . getName ( ) . equalsIgnoreCase ( otherConcept . getFullySpecifiedName ( locale ) . getName ( ) ) )
testProcessorManagementNamingStrategy ( ) { javax . management . ObjectName on = queryForNamedObjects ( "org.apache.camel:context=*/camelContext,type=processors,route=namingStrategyRoute,name=\"namingStrategyProcessor\"" ) ; javax . management . ObjectInstance oi = getMBeanServer ( ) . getObjectInstance ( on ) ; "<Asse...
org . junit . Assert . assertNotNull ( oi )
testSimpleInterceptor ( ) { com . navercorp . pinpoint . bootstrap . interceptor . AroundInterceptor simpleAroundInterceptor = mock ( com . navercorp . pinpoint . bootstrap . interceptor . AroundInterceptor . class ) ; when ( registryAdaptor . getInterceptor ( 0 ) ) . thenReturn ( simpleAroundInterceptor ) ; int findId...
org . junit . Assert . assertSame ( find , simpleAroundInterceptor )
testGetTasksAssignedAsPotentialOwnerWithUserGroupsLangNoTaskNoGroupIds ( ) { java . util . List < java . lang . String > groupIds = new java . util . ArrayList < java . lang . String > ( ) ; groupIds . add ( "Crusaders" ) ; java . util . List < org . kie . api . task . model . TaskSummary > tasks = taskService . getTas...
org . junit . Assert . assertEquals ( 0 , tasks . size ( ) )
get_nonNull ( ) { org . cache2k . Cache < java . lang . Integer , java . lang . Integer > c = target . cache ( ) ; java . lang . Integer v = c . get ( 1 ) ; "<AssertPlaceHolder>" ; } get ( K ) { return super . get ( key ) ; }
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 1 ) ) , v )
export ( ) { com . box . l10n . mojito . entity . Repository repository = createTestRepoUsingRepoService ( ) ; getL10nJCommander ( ) . run ( "push" , "-r" , repository . getName ( ) , "-s" , getInputResourcesTestDir ( "source" ) . getAbsolutePath ( ) ) ; com . box . l10n . mojito . rest . entity . Asset asset = assetCl...
org . junit . Assert . assertEquals ( "source-xliff_" 0 , ( ( findAllBefore . getTotalElements ( ) ) + 1 ) , findAllAfter . getTotalElements ( ) )
testCreateEmrClusterOverrideExistingCoreInstanceToNullAssertSuccess ( ) { org . finra . herd . model . jpa . NamespaceEntity namespaceEntity = namespaceDaoTestHelper . createNamespaceEntity ( org . finra . herd . service . NAMESPACE ) ; java . lang . String definitionXml = org . apache . commons . io . IOUtils . toStri...
org . junit . Assert . assertNull ( emrClusterCreateResponse . getEmrClusterDefinition ( ) . getInstanceDefinitions ( ) . getCoreInstances ( ) )
generate_random_number_java8 ( ) { java . util . Random random = new java . util . Random ( 10 ) ; java . util . OptionalInt randomNumber = random . ints ( 0 , 10 ) . findFirst ( ) ; "<AssertPlaceHolder>" ; } getAsInt ( ) { return 10 ; }
org . junit . Assert . assertTrue ( ( ( randomNumber . getAsInt ( ) ) < 10 ) )
test_equals_otherClass ( ) { org . threeten . extra . Minutes test5 = org . threeten . extra . Minutes . of ( 5 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == otherAmount ) { return true ; } if ( otherAmount instanceof org . threeten . extra . Seconds ) { org . threeten . extra . Secon...
org . junit . Assert . assertEquals ( false , test5 . equals ( "" ) )
testCastExceptionalTR ( ) { final boolean value2 = safeCast ( 23.0 , org . nohope . reflection . CastTest . trb ) ; "<AssertPlaceHolder>" ; } safeCast ( java . lang . Object , java . lang . Class ) { return org . nohope . reflection . IntrospectionUtils . safeCast ( obj , clazz , null ) ; }
org . junit . Assert . assertNull ( value2 )
setHasException_shortToByteCasting ( ) { com . navercorp . pinpoint . common . server . bo . serializer . trace . v2 . bitfield . SpanEventBitField field = new com . navercorp . pinpoint . common . server . bo . serializer . trace . v2 . bitfield . SpanEventBitField ( ) ; field . setHasException ( true ) ; byte byteFie...
org . junit . Assert . assertTrue ( byteCastField . isSetHasException ( ) )
importTest ( ) { org . dkpro . lab . task . Task producer = new org . dkpro . lab . task . impl . ExecutableTaskBase ( ) { @ org . dkpro . lab . task . Override public void execute ( org . dkpro . lab . engine . TaskContext aContext ) throws org . dkpro . lab . task . Exception { System . out . println ( "Running<sp>pr...
org . junit . Assert . assertEquals ( data . getProperty ( "key" ) , "value" )
testPortSerialize ( ) { org . onosproject . net . resource . DiscreteResource device = org . onosproject . net . resource . Resources . discrete ( org . onosproject . net . DeviceId . deviceId ( "a" ) ) . resource ( ) ; java . util . Set < org . onosproject . net . resource . DiscreteResource > resources = java . util ...
org . junit . Assert . assertThat ( decoded , org . hamcrest . Matchers . is ( original ) )
theResourcesPerDayIsCalculatedCorrectlyIfHasEndedInTheMiddleOfTheEnd ( ) { givenSpecificAllocations ( org . libreplan . business . workingday . ResourcesPerDay . amount ( 2 ) ) ; org . libreplan . business . planner . entities . ResourceAllocation . allocating ( allocations ) . untilAllocating ( hours ( 30 ) ) ; org . ...
org . junit . Assert . assertThat ( allocation . getResourcesPerDay ( ) , org . hamcrest . CoreMatchers . equalTo ( org . libreplan . business . workingday . ResourcesPerDay . amount ( 2 ) ) )
hasSameOrderableAs_shouldReturnFalseIfTheOtherOrderIsNull ( ) { org . openmrs . DrugOrder order = new org . openmrs . DrugOrder ( ) ; order . setConcept ( new org . openmrs . Concept ( ) ) ; "<AssertPlaceHolder>" ; } hasSameOrderableAs ( org . openmrs . Order ) { if ( ! ( super . hasSameOrderableAs ( otherOrder ) ) ) {...
org . junit . Assert . assertFalse ( order . hasSameOrderableAs ( null ) )
readFullyOnChannelReadsFully ( ) { java . nio . ByteBuffer b = java . nio . ByteBuffer . allocate ( 20 ) ; final byte [ ] source = new byte [ 20 ] ; for ( byte i = 0 ; i < 20 ; i ++ ) { source [ i ] = i ; } org . apache . commons . compress . utils . IOUtilsTest . readFully ( source , b ) ; "<AssertPlaceHolder>" ; } ar...
org . junit . Assert . assertArrayEquals ( source , b . array ( ) )
test2 ( ) { edu . cmu . tetrad . test . Node x1 = new edu . cmu . tetrad . test . GraphNode ( "X1" ) ; edu . cmu . tetrad . test . Node x2 = new edu . cmu . tetrad . test . GraphNode ( "X2" ) ; edu . cmu . tetrad . test . Node x3 = new edu . cmu . tetrad . test . GraphNode ( "X3" ) ; edu . cmu . tetrad . test . Node x4...
org . junit . Assert . assertEquals ( pag , truePag )
testGaussianDistribution ( ) { for ( int i = 0 ; i < ( org . streaminer . stream . frequency . topk . TestStochasticTopper . NUM_ITERATIONS ) ; i ++ ) { vs . add ( new java . lang . Integer ( ( ( int ) ( java . lang . Math . round ( ( ( random . nextGaussian ( ) ) * ( org . streaminer . stream . frequency . topk . Test...
org . junit . Assert . assertTrue ( ( ( ( tippyTop . getItem ( ) ) > ( - 15 ) ) && ( ( tippyTop . getItem ( ) ) < 15 ) ) )
commonPrefixTest_2a ( ) { final java . util . List < java . lang . String > input = com . google . common . collect . Lists . newArrayList ( "alfabeta" , "alfagamma" , "alf" ) ; final java . lang . String expected = "alf" ; final java . lang . String actual = org . erlide . util . StringUtils . getLongestPrefix ( input...
org . junit . Assert . assertEquals ( expected , actual )
testApplyScriptReturningTrue ( ) { java . lang . String script = "init<sp>=<sp>function()<sp>{};" + "apply<sp>=<sp>function(priceTick)<sp>{<sp>return<sp>priceTick.closePriceAsk<sp>==<sp>0.00003;<sp>};" ; com . onplan . adviser . predicate . AdviserPredicate adviserPredicate = createAdviserPredicate ( script ) ; adviser...
org . junit . Assert . assertEquals ( 1 , trueCount )
hashCodeTest ( ) { br . com . autonomiccs . apacheCloudStack . client . ApacheCloudStackApiCommandParameter apacheCloudStackApiCommandParameter = new br . com . autonomiccs . apacheCloudStack . client . ApacheCloudStackApiCommandParameter ( "param1" , "value" ) ; org . apache . commons . lang3 . builder . HashCodeBuild...
org . junit . Assert . assertEquals ( hashCodeBuilder . toHashCode ( ) , apacheCloudStackApiCommandParameter . hashCode ( ) )
test_parse_changeStyle_strict ( ) { setStrict ( true ) ; java . text . ParsePosition pos = new java . text . ParsePosition ( 0 ) ; getFormatter ( ) . parseUnresolved ( "a" , pos ) ; "<AssertPlaceHolder>" ; } getIndex ( ) { return m_index ; }
org . junit . Assert . assertEquals ( pos . getIndex ( ) , 0 )
testFormCluster ( ) { java . lang . String path = getClass ( ) . getClassLoader ( ) . getResource ( "test.conf" ) . getPath ( ) ; java . lang . Thread thread1 = new java . lang . Thread ( ( ) -> { try { io . atomix . agent . AtomixAgent . main ( new java . lang . String [ ] { "-m" , "test.conf" 0 , "client1" 5 , "clien...
org . junit . Assert . assertEquals ( "bar" , map2 . get ( "foo" ) . value ( ) )
colinearTestWithNonColinearPoints ( ) { javax . vecmath . Point3d pointA = new javax . vecmath . Point3d ( 1 , 1 , 1 ) ; javax . vecmath . Point3d pointB = new javax . vecmath . Point3d ( 2 , 3 , 2 ) ; javax . vecmath . Point3d pointC = new javax . vecmath . Point3d ( 3 , 3 , 3 ) ; "<AssertPlaceHolder>" ; } isColinear ...
org . junit . Assert . assertFalse ( org . openscience . cdk . stereo . StereoTool . isColinear ( pointA , pointB , pointC ) )
testParseSingleLintArgsFile ( ) { java . lang . String [ ] args = com . kakao . hbase . common . Args . parseArgsFile ( "testSingleLine.args" , true ) ; "<AssertPlaceHolder>" ; } parseArgsFile ( java . lang . String , boolean ) { final java . lang . String string ; if ( fromResource ) { string = com . kakao . hbase . c...
org . junit . Assert . assertEquals ( 4 , args . length )
testGetAccount ( ) { com . google . cloud . tools . eclipse . login . GoogleLoginService loginService = new com . google . cloud . tools . eclipse . login . GoogleLoginService ( dataStore , uiFacade , loggerFacade ) ; "<AssertPlaceHolder>" ; } getAccounts ( ) { synchronized ( loginState ) { return new java . util . Has...
org . junit . Assert . assertTrue ( loginService . getAccounts ( ) . isEmpty ( ) )
verifyApplyReturnsTokenFromXToken ( ) { final org . glassfish . jersey . server . ContainerRequest request = mock ( org . glassfish . jersey . server . ContainerRequest . class ) ; doReturn ( null ) . when ( tokenHeaderUtility ) . getAuthorizationToken ( request ) ; doReturn ( token ) . when ( tokenHeaderUtility ) . ge...
org . junit . Assert . assertEquals ( token . serialise ( ) , result . serialise ( ) )
remoteFilenameFieldIsMandatoryWhenStreamingFromInputField ( ) { org . pentaho . di . core . row . RowMeta rowMeta = org . pentaho . di . trans . steps . sftpput . SFTPPutTest . rowOfStringsMeta ( "sourceFilenameFieldName" , "remoteDirectoryFieldName" ) ; step . setInputRowMeta ( rowMeta ) ; doReturn ( new java . lang ....
org . junit . Assert . assertEquals ( 1 , step . getErrors ( ) )
findClassInJar ( ) { org . springframework . ide . vscode . commons . maven . java . MavenJavaProject project = org . springframework . ide . vscode . commons . maven . JavaIndexTest . mavenProjectsCache . get ( "gs-rest-service-cors-boot-1.4.1-with-classpath-file" ) ; org . springframework . ide . vscode . commons . j...
org . junit . Assert . assertNotNull ( type )
shouldBeValidWithView ( ) { io . gravitee . management . model . api . ApiEntity api = mock ( io . gravitee . management . model . api . ApiEntity . class ) ; when ( api . getViews ( ) ) . thenReturn ( java . util . Collections . singleton ( "view" ) ) ; boolean valid = srv . isValid ( api ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertTrue ( valid )
getMarketplaceRevenueShare ( ) { org . oscm . ui . model . Marketplace m = new org . oscm . ui . model . Marketplace ( ) ; "<AssertPlaceHolder>" ; } getMarketplaceRevenueShare ( ) { org . oscm . ui . model . Marketplace m = new org . oscm . ui . model . Marketplace ( ) ; org . junit . Assert . assertNull ( m . getMarke...
org . junit . Assert . assertNull ( m . getMarketplaceRevenueShare ( ) )
testBuildDockerFileExplicitTCPPort ( ) { io . fabric8 . maven . docker . assembly . Arguments a = Arguments . Builder . get ( ) . withParam ( "c1" ) . withParam ( "c2" ) . build ( ) ; java . lang . String dockerfileContent = new io . fabric8 . maven . docker . assembly . DockerFileBuilder ( ) . add ( "docker/Dockerfile...
org . junit . Assert . assertEquals ( expected , stripCR ( dockerfileContent ) )
shouldRejectOnPut ( ) { host = new org . openstack . atlas . docs . loadbalancers . api . management . v1 . Host ( ) ; host . setIpv4Public ( "100.10.100.10" ) ; host . setUtilization ( "%99" ) ; res = hv . validate ( host , org . openstack . atlas . api . mgmt . validation . validators . PUT ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertFalse ( resultMessage ( res , org . openstack . atlas . api . mgmt . validation . validators . PUT ) , res . passedValidation ( ) )
validate_NeitherPathNorSource ( ) { com . networknt . handler . config . PathChain chain = new com . networknt . handler . config . PathChain ( ) ; chain . setPath ( "/my/path" ) ; chain . setMethod ( "MAGIC" ) ; try { chain . validate ( "unit<sp>test<sp>config" ) ; org . junit . Assert . fail ( "Expected<sp>exception"...
org . junit . Assert . assertEquals ( ex_message , e . getMessage ( ) )
findLocationAttributeTypes_shouldReturnNoResultsIfThereAreNoMatchingLocations ( ) { org . openmrs . module . webservices . rest . SimpleObject result = deserialize ( handle ( newGetRequest ( getURI ( ) , new org . openmrs . module . webservices . rest . web . v1_0 . controller . openmrs1_9 . Parameter ( "q" , "zzzznoty...
org . junit . Assert . assertEquals ( 0 , org . openmrs . module . webservices . rest . test . Util . getResultsSize ( result ) )
testObjectSerialization ( ) { com . owlike . genson . Genson genson = createTimestampGenson ( java . time . OffsetDateTime . class , TimestampFormat . OBJECT , torontoZoneId ) ; java . time . OffsetDateTime dt = java . time . OffsetDateTime . ofInstant ( java . time . ZonedDateTime . of ( 2011 , 11 , 10 , 9 , 8 , 7 , 1...
org . junit . Assert . assertEquals ( expectedJson , genson . serialize ( dt ) )
testLookupCutOffFalse ( ) { final tlc2 . util . ContextTest . DummySymbolNode name = new tlc2 . util . ContextTest . DummySymbolNode ( "ctx1" ) ; final java . lang . Object value = "value1" ; final tlc2 . util . Context ctx1 = Context . Empty . cons ( name , value ) ; final tlc2 . util . Context branch = tlc2 . util . ...
org . junit . Assert . assertEquals ( value , ctx3 . lookup ( name , false ) )
testListWorkReportType ( ) { int previous = workReportTypeDAO . list ( org . libreplan . business . workreports . entities . WorkReportType . class ) . size ( ) ; org . libreplan . business . workreports . entities . WorkReportType workReportType1 = createValidWorkReportType ( ) ; workReportTypeDAO . save ( workReportT...
org . junit . Assert . assertEquals ( ( previous + 2 ) , list . size ( ) )
testSetBackgroundColor ( ) { org . eclipse . swt . graphics . Color red = display . getSystemColor ( SWT . COLOR_RED ) ; label . setBackground ( red ) ; "<AssertPlaceHolder>" ; } getBackground ( ) { checkWidget ( ) ; handleVirtual ( ) ; org . eclipse . swt . graphics . Color defaultBackground = getItemData ( ) . defaul...
org . junit . Assert . assertEquals ( label . getBackground ( ) , red )
testString ( ) { org . apache . avro . Schema . Type type = Schema . Type . STRING ; org . apache . avro . Schema simple = org . apache . avro . SchemaBuilder . builder ( ) . stringType ( ) ; org . apache . avro . Schema expected = primitive ( type , simple ) ; org . apache . avro . Schema built1 = org . apache . avro ...
org . junit . Assert . assertEquals ( expected , built1 )
testLeavesAPlainScriptIntact ( ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; mutator . mutate ( "return<sp>document" , builder ) ; "<AssertPlaceHolder>" ; } toString ( ) { return serialize ( ) ; }
org . junit . Assert . assertTrue ( builder . toString ( ) . contains ( "return<sp>document" ) )
createFigId ( ) { java . lang . String figId = gov . uspto . patent . ReferenceTagger . createFigId ( "Fig.<sp>1A" ) ; java . lang . String expect = "FIG-1A" ; "<AssertPlaceHolder>" ; } createFigId ( java . lang . String ) { java . util . regex . Matcher figMatcher = gov . uspto . patent . ReferenceTagger . PATENT_FIG ...
org . junit . Assert . assertEquals ( expect , figId )
testCustomParentContainer ( ) { java . lang . Object actual = new com . picocontainer . PicoBuilder ( new com . picocontainer . PicoBuilderTestCase . CustomParentcontainer ( ) ) . build ( ) ; java . lang . Object expected = new com . picocontainer . DefaultPicoContainer ( new com . picocontainer . PicoBuilderTestCase ....
org . junit . Assert . assertEquals ( toXml ( expected ) , toXml ( actual ) )
testToString ( ) { int [ ] bitsetColumns = new int [ ] { 0 , 3 } ; de . metanome . algorithm_helper . data_structures . ColumnCombinationBitset columnCombination = new de . metanome . algorithm_helper . data_structures . ColumnCombinationBitset ( bitsetColumns ) ; java . lang . String expectedStringRepresentation = "10...
org . junit . Assert . assertTrue ( columnCombination . toString ( ) . contains ( expectedStringRepresentation ) )
convertJsonWithNullValuesToPojoShouldSucceed ( ) { generated . classic . async . vertx . tables . pojos . Something something = new generated . classic . async . vertx . tables . pojos . Something ( ) ; io . vertx . core . json . JsonObject jsonObject = something . toJson ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( new generated . classic . async . vertx . tables . pojos . Something ( jsonObject ) )
ovalTestBBoxDef2 ( ) { de . nx42 . maps4cim . config . Config c = de . nx42 . maps4cim . config . ConfigTest . generateConfig ( ) ; c . bounds . value = de . nx42 . maps4cim . config . bounds . BBoxDef . of ( 48 , 11 , 49 , 12 ) ; de . nx42 . maps4cim . config . bounds . BBoxDef bb = ( ( de . nx42 . maps4cim . config ....
org . junit . Assert . assertTrue ( ( ( cvs . size ( ) ) > 0 ) )
testAppIsSingleton ( ) { com . eclipsesource . tabris . TabrisClient client = new com . eclipsesource . tabris . internal . TabrisClientImpl ( ) ; com . eclipsesource . tabris . app . App app = client . getService ( com . eclipsesource . tabris . app . App . class ) ; "<AssertPlaceHolder>" ; } getService ( java . lang ...
org . junit . Assert . assertSame ( app , client . getService ( com . eclipsesource . tabris . app . App . class ) )
testConvertFileLocationToDataIfEnabled ( ) { gov . hhs . fha . nhinc . admindistribution . AdminDistributionUtils adminUtils = createAdminDistributionUtils ( ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( mockFileUtils ) . isParsePayloadAsFileLocationEnabled ( ) ; will ( returnValue ( true ) ) ...
org . junit . Assert . assertNotNull ( dh )
testGenFault ( ) { env . put ( ToolConstants . CFG_WSDLURL , getLocation ( "/wsdl2java_wsdl/hello_world.wsdl" ) ) ; env . remove ( ToolConstants . CFG_COMPILE ) ; env . remove ( ToolConstants . CFG_IMPL ) ; env . put ( ToolConstants . CFG_GEN_FAULT , ToolConstants . CFG_GEN_FAULT ) ; processor . setContext ( env ) ; pr...
org . junit . Assert . assertEquals ( 2 , file . list ( ) . length )
hScanShouldReadEntireValueRange ( ) { int nrOfValues = 321 ; for ( int i = 0 ; i < nrOfValues ; i ++ ) { nativeConnection . hset ( org . springframework . data . redis . connection . jedis . JedisClusterConnectionTests . KEY_1_BYTES , org . springframework . data . redis . connection . jedis . JedisConverters . toBytes...
org . junit . Assert . assertThat ( i , is ( nrOfValues ) )
testSetName ( ) { java . lang . String name = com . silverpeas . jcrutil . RandomGenerator . getRandomString ( ) ; com . stratelia . silverpeas . silverstatistics . model . TypeStatistics instance = new com . stratelia . silverpeas . silverstatistics . model . TypeStatistics ( ) ; instance . setName ( name ) ; "<Assert...
org . junit . Assert . assertThat ( instance . getName ( ) , is ( name ) )
equals_should_return_true_on_different_pages_with_same_content ( ) { org . bonitasoft . engine . business . application . xml . ApplicationPageNode page1 = org . bonitasoft . engine . business . application . xml . ApplicationNodeBuilder . newApplicationPage ( "Page" , "Token" ) . create ( ) ; org . bonitasoft . engine...
org . junit . Assert . assertTrue ( page1 . equals ( page2 ) )
testFullBaselineRateShouldBeDefined ( ) { org . drugis . addis . entities . RateMeasurement base = new org . drugis . addis . entities . BasicRateMeasurement ( 100 , 100 ) ; org . drugis . addis . entities . RateMeasurement subj = new org . drugis . addis . entities . BasicRateMeasurement ( 50 , 100 ) ; org . drugis . ...
org . junit . Assert . assertTrue ( or . isDefined ( ) )