input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
createsNullValueFromString ( ) { org . everrest . core . impl . provider . json . JsonValue jsonValue = jsonValueFactory . createJsonValue ( "null" ) ; "<AssertPlaceHolder>" ; } isNull ( ) { return true ; }
org . junit . Assert . assertTrue ( jsonValue . isNull ( ) )
shouldInjectOpenedBeforeBound ( ) { org . kaazing . k3po . lang . internal . ast . AstScriptNode expectedScriptNode = new org . kaazing . k3po . lang . internal . ast . builder . AstScriptNodeBuilder ( ) . addConnectStream ( ) . addOpenedEvent ( ) . done ( ) . addBoundEvent ( ) . done ( ) . done ( ) . done ( ) ; org . ...
org . junit . Assert . assertEquals ( expectedScriptNode , actualScriptNode )
testDoubleCloseStream ( ) { final ch . cyberduck . core . Path file = new ch . cyberduck . core . Path ( new ch . cyberduck . core . ftp . FTPWorkdirService ( session ) . find ( ) , java . util . UUID . randomUUID ( ) . toString ( ) , java . util . EnumSet . of ( Path . Type . file ) ) ; new ch . cyberduck . core . sha...
org . junit . Assert . assertNotNull ( in )
testReplaceCollection ( ) { org . hibernate . Session session = sf . openSession ( ) ; org . hibernate . Transaction transaction = session . beginTransaction ( ) ; com . hazelcast . hibernate . entity . DummyProperty someProp = new com . hazelcast . hibernate . entity . DummyProperty ( "some<sp>prop" ) ; session . save...
org . junit . Assert . assertEquals ( "some<sp>entity" , entity . getName ( ) )
testInvalidate ( ) { java . io . File f = java . nio . file . Paths . get ( "" ) . toAbsolutePath ( ) . resolve ( "src/test/webapp/WEB-INF/redisson.yaml" ) . toFile ( ) ; org . redisson . config . Config config = org . redisson . config . Config . fromYAML ( f ) ; org . redisson . api . RedissonClient r = org . redisso...
org . junit . Assert . assertEquals ( 0 , r . getKeys ( ) . count ( ) )
testStorePutGet ( ) { java . lang . String key = "org.apache.gora:http:/" ; org . apache . gora . store . DataStore < java . lang . String , org . apache . gora . examples . generated . WebPage > store = super . webPageStore ; org . junit . Assume . assumeTrue ( ( ( store . get ( key , new java . lang . String [ 0 ] ) ...
org . junit . Assert . assertNotNull ( store . get ( key , new java . lang . String [ 0 ] ) )
getVSystemConfigurationByInstanceName_NotExisting ( ) { org . oscm . app . ror . client . RORClient vdcClient = prepareVdcClient ( ) ; org . oscm . app . ror . data . LPlatformConfiguration config = mock ( org . oscm . app . ror . data . LPlatformConfiguration . class ) ; java . util . ArrayList < org . oscm . app . ro...
org . junit . Assert . assertNull ( result )
StrategyManagerInAction_strategyIsNull_throwsException ( ) { com . graphhopper . jsprit . core . algorithm . SearchStrategyManager manager = new com . graphhopper . jsprit . core . algorithm . SearchStrategyManager ( ) ; manager . addStrategy ( null , 1.0 ) ; "<AssertPlaceHolder>" ; } addStrategy ( com . graphhopper . ...
org . junit . Assert . assertTrue ( false )
testGetMatch ( ) { final org . opendaylight . yang . gen . v1 . urn . opendaylight . flow . types . rev131026 . flow . Match match = org . opendaylight . openflowplugin . applications . bulk . o . matic . BulkOMaticUtils . getMatch ( - 1 ) ; "<AssertPlaceHolder>" ; } getMatch ( int ) { org . opendaylight . yang . gen ....
org . junit . Assert . assertNotNull ( match )
testEidFound ( ) { org . mockito . Mockito . when ( uds . getUserByAid ( "1234" ) ) . thenReturn ( user ) ; org . mockito . Mockito . when ( uds . getUser ( org . mockito . Mockito . anyString ( ) ) ) . thenThrow ( org . sakaiproject . user . api . UserNotDefinedException . class ) ; org . mockito . Mockito . when ( dh...
org . junit . Assert . assertEquals ( user , provider . getUserByIdEid ( "1234" ) )
getContainerProperty_tableNewlyAddedItem_returnsPropertyOfNewlyAddedItem ( ) { java . lang . Object id = container . addItem ( ) ; com . vaadin . v7 . data . Item item = container . getItem ( id ) ; item . getItemProperty ( NAME ) . setValue ( "asdf" ) ; "<AssertPlaceHolder>" ; } getContainerProperty ( java . lang . Ob...
org . junit . Assert . assertEquals ( "asdf" , container . getContainerProperty ( id , NAME ) . getValue ( ) )
cacheShouldUpdateWithNewCacheableResponse ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest req1 = org . apache . hc . client5 . http . impl . cache . HttpTestUtils . makeDefaultRequest ( ) ; final org . apache . hc . core5 . http . ClassicHttpResponse resp1 = org . apache . hc . client5 . http . impl ....
org . junit . Assert . assertTrue ( org . apache . hc . client5 . http . impl . cache . HttpTestUtils . semanticallyTransparent ( resp2 , result ) )
tableNameAliased ( ) { tableAccessStrategy . addTableAlias ( "foo" , "FOO" ) ; "<AssertPlaceHolder>" ; } tableName ( java . lang . String ) { return annis . sqlgen . TableAccessStrategy . tableName ( tableAliases , table ) ; }
org . junit . Assert . assertEquals ( "FOO" , tableAccessStrategy . tableName ( "foo" ) )
testGrouping ( ) { java . lang . String typeStr = "struct<name:string,age:int,numbers:array<string>>" ; org . apache . hadoop . hive . serde2 . typeinfo . TypeInfo typeInfo = org . apache . hadoop . hive . serde2 . typeinfo . TypeInfoUtils . getTypeInfoFromTypeString ( typeStr ) ; org . apache . hadoop . hive . ql . io...
org . junit . Assert . assertEquals ( expected , result )
testReturnsImagesWhenImagesAndImageFieldPresent ( ) { org . atlasapi . media . entity . Episode hasImages = new org . atlasapi . media . entity . Episode ( ) ; hasImages . setImages ( com . google . common . collect . ImmutableSet . of ( new org . atlasapi . media . entity . Image ( "image" ) ) ) ; hasImages . setImage...
org . junit . Assert . assertEquals ( hasImages . getImages ( ) , extractedImages )
testMetLijstWaar ( ) { final nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst persoonslijst = nl . bzk . brp . domain . leveringmodel . helper . TestBuilders . maakPersoonMetIdentificatieNrs ( "123456789" , "987654321" ) ; final nl . bzk . brp . domain . expressie . Expressie populatieBeperking = nl . ...
org . junit . Assert . assertTrue ( resultaat )
testValidURL ( ) { com . liferay . dynamic . data . mapping . form . evaluator . internal . function . IsURLFunction isURLFunction = new com . liferay . dynamic . data . mapping . form . evaluator . internal . function . IsURLFunction ( ) ; java . lang . Boolean result = isURLFunction . apply ( "http://www.liferay.com"...
org . junit . Assert . assertTrue ( result )
testCreateProxy ( ) { com . github . dengqiao . rpc . locate . ServiceLocator sl = new com . github . dengqiao . rpc . locate . impl . ZkServiceLocator ( ) ; sl . setClientProfile ( com . github . dengqiao . rpc . client . TestHelper . getClientProfile ( ) ) ; com . github . dengqiao . rpc . example . SoService soServi...
org . junit . Assert . assertTrue ( soService . getSoById ( 1L ) . getId ( ) . equals ( 1L ) )
testSerializable ( ) { com . pingcap . tikv . meta . TiTableInfo table = com . pingcap . tikv . meta . TiDAGRequestTest . createTable ( ) ; com . pingcap . tikv . meta . TiDAGRequest selReq = new com . pingcap . tikv . meta . TiDAGRequest ( TiDAGRequest . PushDownType . NORMAL ) ; selReq . addRequiredColumn ( com . pin...
org . junit . Assert . assertTrue ( com . pingcap . tikv . meta . TiDAGRequestTest . selectRequestEquals ( selReq , derselReq ) )
testPack1fInput ( ) { final float [ ] data = new float [ ( ( slices ) * ( rows ) ) * ( columns ) ] ; java . lang . String msg = ( java . lang . String . format ( org . jtransforms . fft . RealFFTUtils_3DTest . DEFAULT_MESSAGE , numThreads , slices , rows , columns ) ) + "[%d][%d][%d]" ; for ( int s = 0 ; s < ( slices )...
org . junit . Assert . assertEquals ( java . lang . String . format ( msg , s , r , c ) , expected , actual , 0.0 )
testSkipInt ( ) { long sentinel = Long . MAX_VALUE ; org . apache . trevni . OutputBuffer out = new org . apache . trevni . OutputBuffer ( ) ; out . writeValue ( Integer . MAX_VALUE , ValueType . INT ) ; out . writeLong ( sentinel ) ; org . apache . trevni . InputBuffer in = new org . apache . trevni . InputBuffer ( ne...
org . junit . Assert . assertEquals ( sentinel , in . readLong ( ) )
shouldDelegateToHandler ( ) { org . bukkit . entity . Player player = mock ( org . bukkit . entity . Player . class ) ; fr . xephi . authme . data . limbo . persistence . LimboPersistenceHandler handler = getHandler ( ) ; fr . xephi . authme . data . limbo . LimboPlayer limbo = mock ( fr . xephi . authme . data . limbo...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( limbo ) )
testUpdateImageWhenUpdatingEntry ( ) { com . liferay . blogs . model . BlogsEntry blogsEntry = addBlogsEntry ( "image1.jpg" ) ; blogsEntry = updateBlogsEntry ( blogsEntry . getEntryId ( ) , "image2.jpg" ) ; com . liferay . portal . kernel . repository . model . FileEntry imageFileEntry = com . liferay . portal . kernel...
org . junit . Assert . assertEquals ( "image2.jpg" , imageFileEntry . getTitle ( ) )
testGetProjectsAdminCallerSame ( ) { caller = userToGetFor ; when ( caller . isAdmin ( ) ) . thenReturn ( true ) ; org . sagebionetworks . reflection . model . PaginatedResults < org . sagebionetworks . repo . model . ProjectHeader > results = userProfileManager . getProjects ( caller , userToGetFor , teamToFetch , typ...
org . junit . Assert . assertNotNull ( results )
testRVCWithCeilAndFloorNeededForTimestamp ( ) { long ts = nextTimestamp ( ) ; java . lang . String tenantId = getOrganizationId ( ) ; java . sql . Date dateUpserted = com . salesforce . phoenix . util . DateUtil . parseDate ( "2012-01-01<sp>14:25:28" ) ; dateUpserted = new java . sql . Date ( ( ( dateUpserted . getTime...
org . junit . Assert . assertEquals ( 3 , count )
testAsInt ( ) { final org . jboss . dmr . BigDecimalModelValue value = new org . jboss . dmr . BigDecimalModelValue ( new java . math . BigDecimal ( 5 ) ) ; "<AssertPlaceHolder>" ; } asInt ( ) { return value ; }
org . junit . Assert . assertEquals ( 5 , value . asInt ( ) )
testFixturesCanHaveParametersInEveryOtherCell ( ) { info . novatec . testit . livingdoc . util . Tables table = parse ( "[MyInterpreter][LivingDocInterpreterSelectorTest$MyFixture][ignored][1st<sp>parameter][ignored][2nd<sp>parameter]" ) ; info . novatec . testit . livingdoc . document . LivingDocInterpreterSelectorTes...
org . junit . Assert . assertEquals ( 2 , myFixture . parameterCount ( ) )
test_12 ( ) { final org . erlide . core . builder . CompilerOptions prefs = new org . erlide . core . builder . CompilerOptions ( ) ; prefs . setPathOption ( CompilerOptions . INCLUDE_DIRS , parseIncludes ( "/tmp/x,/tmp/y" ) ) ; final java . lang . String actual = prefs . export ( ) . toString ( ) ; final java . lang ....
org . junit . Assert . assertEquals ( expect , actual )
shouldEchoTextFrameWithPayloadLength127 ( ) { org . kaazing . netx . URLConnectionHelper helper = org . kaazing . netx . URLConnectionHelper . newInstance ( ) ; java . net . URI location = java . net . URI . create ( "ws://localhost:8080/path" ) ; org . kaazing . netx . ws . WsURLConnection connection = ( ( org . kaazi...
org . junit . Assert . assertEquals ( writeString , readString )
givenTypeSpecificSerializerExist_whenObjectIsSerializedAndDeserialized_thenItHasTheSameInternalState ( ) { java . lang . String input = "foo" ; info . jerrinot . subzero . Serializer < java . lang . String > serializer = new info . jerrinot . subzero . Serializer ( java . lang . String . class ) ; serializer . setHazel...
org . junit . Assert . assertEquals ( input , output )
whenNameContainsMultipleValuesGetShouldReturnTheFirst ( ) { io . netty . handler . codec . DefaultHeadersTest . TestDefaultHeaders headers = io . netty . handler . codec . DefaultHeadersTest . newInstance ( ) ; headers . add ( of ( "name1" ) , of ( "value1" ) , of ( "value2" ) ) ; "<AssertPlaceHolder>" ; } of ( int ) {...
org . junit . Assert . assertEquals ( of ( "value1" ) , headers . get ( of ( "name1" ) ) )
testIsSafeLocationNonSolidGround ( ) { when ( ground . getType ( ) ) . thenReturn ( Material . WATER ) ; "<AssertPlaceHolder>" ; } isSafeLocation ( org . bukkit . Location ) { if ( ( l . getWorld ( ) ) == null ) { return false ; } org . bukkit . block . Block ground = l . getBlock ( ) . getRelative ( BlockFace . DOWN )...
org . junit . Assert . assertFalse ( manager . isSafeLocation ( location ) )
shouldInstrumentES6ClassStaticMethod ( ) { java . lang . String source = "class<sp>Rectangle<sp>{\n" + ( ( ( "<sp>static<sp>area(height,<sp>width)<sp>{\n" + "<sp>return<sp>height<sp>*<sp>width;\n" ) + "<sp>}\n" ) + "}" ) ; java . lang . String instrumentedSource = sourceProcessor . instrumentSource ( source ) ; java . ...
org . junit . Assert . assertEquals ( expectedSource , instrumentedSource )
testOnException ( ) { java . util . concurrent . atomic . AtomicReference < org . slieb . throwables . java . lang . Throwable > reference = new java . util . concurrent . atomic . AtomicReference ( ) ; org . slieb . throwables . java . lang . Exception expected = new org . slieb . throwables . java . lang . Exception ...
org . junit . Assert . assertEquals ( expected , reference . get ( ) )
givenJava7IO_whenDownloadingFile_thenDownloadShouldBeCorrect ( ) { com . baeldung . download . FileDownload . downloadWithJava7IO ( com . baeldung . download . FileDownloadIntegrationTest . FILE_URL , com . baeldung . download . FileDownloadIntegrationTest . FILE_NAME ) ; "<AssertPlaceHolder>" ; } checkMd5Hash ( java ....
org . junit . Assert . assertTrue ( checkMd5Hash ( com . baeldung . download . FileDownloadIntegrationTest . FILE_NAME ) )
testAggregatorMultilabel ( ) { org . dkpro . tc . ml . report . util . ID2OutcomeCombiner < java . lang . String > aggregator = new org . dkpro . tc . ml . report . util . ID2OutcomeCombiner ( org . dkpro . tc . core . Constants . LM_MULTI_LABEL ) ; aggregator . add ( new java . io . File ( "src/test/resources/id2outco...
org . junit . Assert . assertEquals ( 9 , aggregator . generateId2OutcomeFile ( ) . split ( "\n" ) . length )
shouldHashCodeReturnTheCorrectValue ( ) { int numberOfObjectives = 3 ; double [ ] values = new double [ ] { 1.0 , 2.0 , 3.0 } ; org . uma . jmetal . util . point . PointSolution solution = new org . uma . jmetal . util . point . PointSolution ( numberOfObjectives ) ; org . springframework . test . util . ReflectionTest...
org . junit . Assert . assertEquals ( java . util . Arrays . hashCode ( values ) , solution . hashCode ( ) )
testScenarioWhereCorrectChildShardAppearsAfterLag ( ) { final java . lang . String [ ] expectedExclusiveShardIdSequence = new java . lang . String [ ] { null , java . lang . Integer . toString ( 17 ) , java . lang . Integer . toString ( 27 ) , java . lang . Integer . toString ( 37 ) , java . lang . Integer . toString (...
org . junit . Assert . assertEquals ( expectedNumberOfShards , result . size ( ) )
ruleIsIntroducedAndEvaluatedOnSubclass ( ) { org . junit . rules . TestRuleTest . wasRun = false ; org . junit . runner . JUnitCore . runClasses ( org . junit . rules . TestRuleTest . SonOfExampleTest . class ) ; "<AssertPlaceHolder>" ; } runClasses ( java . lang . Class [ ] ) { return org . junit . runner . JUnitCore ...
org . junit . Assert . assertTrue ( org . junit . rules . TestRuleTest . wasRun )
resolveArtifactWhenRepoConfigAppendsSettings ( ) { java . lang . System . setProperty ( "org.ops4j.pax.url.mvn.repositories" , "+http://repository.jboss.org/nexus/content/groups/public-jboss@id=jboss" ) ; java . lang . System . setProperty ( "org.ops4j.pax.url.mvn.settings" , "src/test/resources/settings-knopflerfish.x...
org . junit . Assert . assertThat ( artifact . exists ( ) , org . hamcrest . CoreMatchers . is ( true ) )
WhenACityIsNotFoundByShapeWeShouldFindByLocation ( ) { com . gisgraphy . importer . GeonamesZipCodeSimpleImporter importer = new com . gisgraphy . importer . GeonamesZipCodeSimpleImporter ( ) { @ com . gisgraphy . importer . Override protected boolean processByShape ( java . lang . String countryCode , java . lang . St...
org . junit . Assert . assertTrue ( called )
experimental_component ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . setProductId ( "prodid" ) ; ical . addExperimentalComponent ( "X-VPARTY" ) ; java . io . StringWriter sw = new java . io . StringWriter ( ) ; biweekly . io . json . JCalWriter writer = new biweekly . io . json . JCalWriter ( ...
org . junit . Assert . assertEquals ( expected , actual )
testFieldClassOnColumnOfOneFieldStructType ( ) { org . apache . calcite . rel . type . RelDataType columnType = org . apache . calcite . adapter . enumerable . PhysTypeTest . TYPE_FACTORY . createStructType ( com . google . common . collect . ImmutableList . of ( org . apache . calcite . adapter . enumerable . PhysType...
org . junit . Assert . assertEquals ( java . lang . Object [ ] . class , rowPhysType . fieldClass ( 0 ) )
testSetLsdbAge ( ) { defaultLspWrapper . setLsdbAge ( defaultIsisLsdbAge ) ; lsdbAge = defaultLspWrapper . lsdbAge ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( lsdbAge , org . hamcrest . CoreMatchers . is ( defaultIsisLsdbAge ) )
hasPrefixFindsParameter ( ) { org . hl7 . fhir . dstu3 . model . HumanName humanName = new org . hl7 . fhir . dstu3 . model . HumanName ( ) . addPrefix ( "test" ) ; "<AssertPlaceHolder>" ; } hasPrefix ( java . lang . String ) { if ( ( this . prefix ) == null ) return false ; for ( org . hl7 . fhir . dstu3 . model . Str...
org . junit . Assert . assertTrue ( humanName . hasPrefix ( "test" ) )
testInsertValueInRightTarget ( ) { info . novatec . testit . livingdoc . ognl . OgnlExpressionTest . Root root = new info . novatec . testit . livingdoc . ognl . OgnlExpressionTest . Root ( ) ; info . novatec . testit . livingdoc . ognl . OgnlExpressionTest . Root2 root2 = new info . novatec . testit . livingdoc . ognl...
org . junit . Assert . assertEquals ( valueInserted , value )
testInvalidTotalTime ( ) { statusList . add ( "time:<sp>junk" ) ; when ( commandExecutor . sendCommand ( properties . getStatus ( ) ) ) . thenReturn ( statusList ) ; "<AssertPlaceHolder>" ; } getTotalTime ( ) { return serverStatus . getTotalTime ( ) ; }
org . junit . Assert . assertEquals ( 0 , serverStatus . getTotalTime ( ) )
testDeleteNotExist ( ) { java . io . File file = testFolder . newFile ( "file.txt" ) ; path = testFolder . getRoot ( ) . getAbsolutePath ( ) ; setupSSHD ( path ) ; net . schmizz . sshj . SSHClient sshClient = createSSHClient ( ) ; for ( com . streamsets . pipeline . lib . remote . ChrootSFTPClient sftpClient : getClien...
org . junit . Assert . assertFalse ( file . exists ( ) )
testHashCode ( ) { "<AssertPlaceHolder>" ; } hashCode ( ) { final java . lang . Object obj = org . jtrfp . trcl . mem . HashTransparentWeakReference . get ( ) ; if ( obj != null ) { return obj . hashCode ( ) ; } else return 0 ; }
org . junit . Assert . assertEquals ( delegate . hashCode ( ) , subject . hashCode ( ) )
testTrustManagerProxyGetAcceptedIssuers ( javax . net . ssl . X509ExtendedTrustManager ) { new mockit . Expectations ( ) { { mockedTrustManager . getAcceptedIssuers ( ) ; times = 1 ; result = null ; } } ; com . oath . auth . TrustManagerProxy trustManagerProxy = new com . oath . auth . TrustManagerProxy ( new javax . n...
org . junit . Assert . assertNull ( trustManagerProxy . getAcceptedIssuers ( ) )
testSum ( ) { org . apache . commons . functor . aggregator . functions . IntegerSumAggregatorBinaryFunction fct = ( ( org . apache . commons . functor . aggregator . functions . IntegerSumAggregatorBinaryFunction ) ( makeFunctor ( ) ) ) ; int total = 0 ; int result = 0 ; int calls = 31 ; java . util . Random rnd = new...
org . junit . Assert . assertEquals ( result , total )
forall_A$Function1_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( ) ; boolean actual = seq . forall ( new com . m3 . scalaflavor4j . F1 < java . lang . Integer , java . lang . Boolean > ( ) { public com . m3 . scalaflavor4j . Boolean apply ( java...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
config_string ( ) { final com . groupon . lex . metrics . expression . LiteralGroupExpression expr = new com . groupon . lex . metrics . expression . LiteralGroupExpression ( resolver ) ; when ( resolver . configString ( ) ) . thenReturn ( new java . lang . StringBuilder ( "foobar" ) ) ; "<AssertPlaceHolder>" ; } confi...
org . junit . Assert . assertEquals ( "foobar" , expr . configString ( ) . toString ( ) )
testForEntity_notNull ( ) { java . util . Properties props = org . hibernate . search . jsr352 . massindexing . MassIndexingJob . parameters ( ) . forEntity ( org . hibernate . search . jsr352 . massindexing . Integer . class ) . build ( ) ; java . lang . String entityTypes = props . getProperty ( MassIndexingJobParame...
org . junit . Assert . assertTrue ( entityNames . contains ( org . hibernate . search . jsr352 . massindexing . Integer . class . getName ( ) ) )
testCommit_nonConflict_pollAndConcurrentOffer ( ) { java . util . List < java . lang . Integer > originalList = newList ( 1 , 2 , 3 ) ; cern . entwined . TransactionalQueue < java . lang . Integer > queue = new cern . entwined . TransactionalQueue < java . lang . Integer > ( originalList ) ; queue . poll ( ) ; cern . e...
org . junit . Assert . assertEquals ( newList ( 2 , 3 , 4 ) , drainedTo )
testTransformColorFromBitonalToBitonal ( ) { java . awt . image . BufferedImage inImage = new java . awt . image . BufferedImage ( 100 , 100 , java . awt . image . BufferedImage . TYPE_BYTE_BINARY ) ; java . awt . image . BufferedImage outImage = edu . illinois . library . cantaloupe . processor . Java2DUtil . transfor...
org . junit . Assert . assertSame ( inImage , outImage )
testUnknownAction ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "-a" , "notImplemented" } ; org . wikidata . wdtk . client . ClientConfiguration config = new org . wikidata . wdtk . client . ClientConfiguration ( args ) ; "<AssertPlaceHolder>" ; } getActions ( ) { return this . actions ; }
org . junit . Assert . assertEquals ( 0 , config . getActions ( ) . size ( ) )
test_GetList_By_Name ( ) { when ( element . findFirst ( any ( ) , any ( ) ) ) . thenReturn ( targetElement ) ; mmarquee . automation . controls . AutomationList list = wndw . getList ( mmarquee . automation . controls . Search . getBuilder ( "myName" ) . build ( ) ) ; "<AssertPlaceHolder>" ; verify ( element , atLeastO...
org . junit . Assert . assertEquals ( targetElement , list . getElement ( ) )
testDefaultInstance ( ) { org . verapdf . component . AuditDuration defaultInstance = org . verapdf . component . AuditDurationImpl . defaultInstance ( ) ; "<AssertPlaceHolder>" ; } defaultInstance ( ) { return org . verapdf . component . AuditDurationImpl . defaultInstance ; }
org . junit . Assert . assertTrue ( ( defaultInstance == ( org . verapdf . component . AuditDurationImpl . defaultInstance ( ) ) ) )
testYeahSure ( ) { org . openscience . cdk . config . XMLIsotopeFactory isofac = org . openscience . cdk . config . XMLIsotopeFactory . getInstance ( new org . openscience . cdk . ChemObject ( ) . getBuilder ( ) ) ; org . openscience . cdk . interfaces . IIsotope match = isofac . getIsotope ( "H" , 13.00001 , 1.0E-4 ) ...
org . junit . Assert . assertNull ( match )
captureImplementationsOfGenericType ( mockit . CapturingImplementationsTest$Base ) { new mockit . Expectations ( ) { { anyInstance . doSomething ( ) ; result = 2 ; anyInstance . doSomething ( 0 ) ; } } ; mockit . CapturingImplementationsTest . Base < java . lang . Integer > impl = new mockit . CapturingImplementationsT...
org . junit . Assert . assertEquals ( 2 , i )
testReplaceDatanodeOnFailure ( ) { final org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( ) ; org . apache . hadoop . hdfs . protocol . datatransfer . ReplaceDatanodeOnFailure . write ( Policy . ALWAYS , true , conf ) ; final java . lang . String [ ] racks = new...
org . junit . Assert . assertEquals ( j , x )
testSerialization ( ) { com . orsoncharts . label . StandardCategoryItemLabelGenerator g1 = new com . orsoncharts . label . StandardCategoryItemLabelGenerator ( ) ; com . orsoncharts . label . StandardCategoryItemLabelGenerator g2 = ( ( com . orsoncharts . label . StandardCategoryItemLabelGenerator ) ( com . orsonchart...
org . junit . Assert . assertTrue ( g1 . equals ( g2 ) )
escapeQuotesTests ( ) { java . lang . String valueOfParameter = "xxx\"xxx\"xxxx" ; java . lang . String escapedString = com . sonyericsson . hudson . plugins . gerrit . trigger . utils . StringUtil . escapeQuotes ( valueOfParameter ) ; java . lang . String expectedString = "xxx\\\"xxx\\\"xxxx" ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( expectedString , escapedString )
testReferringChainedProperties ( ) { info . novatec . testit . livingdoc . ognl . OgnlExpression ognl = info . novatec . testit . livingdoc . ognl . OgnlExpression . onSingleExpression ( "subRoot.field" , new info . novatec . testit . livingdoc . ognl . OgnlExpressionTest . Root ( ) ) ; java . lang . Object value = ogn...
org . junit . Assert . assertEquals ( "value" , value )
testIsRootSchemaNotRoot ( ) { org . apache . avro . Schema notRoot = org . apache . avro . SchemaBuilder . builder ( ) . record ( "NotRoot" ) . fields ( ) . name ( "id" ) . type ( ) . intType ( ) . noDefault ( ) . name ( "name" ) . type ( ) . stringType ( ) . noDefault ( ) . endRecord ( ) ; boolean actual = org . talen...
org . junit . Assert . assertFalse ( actual )
testIfUsageParamIsSentForAnHour ( ) { m . setExpectedPeriod ( Usage . Period . HOUR ) ; com . datasift . client . core . Usage usage = datasift . usage ( Usage . Period . HOUR ) . sync ( ) ; "<AssertPlaceHolder>" ; } isSuccessful ( ) { return ( ( ( ( ! ( failed ) ) && ( ( response ) != null ) ) && ( ( error ) == null )...
org . junit . Assert . assertTrue ( usage . isSuccessful ( ) )
testGetDataLimit ( ) { attributesList = new java . util . ArrayList ( ) ; java . util . Map < java . lang . String , java . lang . Object > attributes = new java . util . HashMap ( ) ; attributes . put ( org . codice . ddf . persistence . attributes . internal . AttributesStoreImplTest . DATA_USAGE_LONG , org . codice ...
org . junit . Assert . assertThat ( usage , org . hamcrest . Matchers . is ( org . codice . ddf . persistence . attributes . internal . AttributesStoreImplTest . LONG_1 ) )
testShouldExecuteLimitZero ( ) { org . teiid . query . sql . lang . Query query = ( ( org . teiid . query . sql . lang . Query ) ( org . teiid . query . parser . QueryParser . getQueryParser ( ) . parseCommand ( "SELECT<sp>e1,<sp>e2<sp>FROM<sp>pm1.g1<sp>LIMIT<sp>0" ) ) ) ; "<AssertPlaceHolder>" ; } shouldExecute ( org ...
org . junit . Assert . assertFalse ( org . teiid . query . processor . relational . RelationalNodeUtil . shouldExecute ( query , false ) )
testProcessResponse_3args ( ) { System . out . println ( "processResponse" ) ; org . hl7 . v3 . PRPAIN201306UV02 response = null ; gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = null ; org . hl7 . v3 . II localPatId = null ; gov . hhs . fha . nhinc . patientdiscovery . response . TrustMode i...
org . junit . Assert . assertEquals ( expResult , result )
hostOnly ( ) { com . gigaspaces . start . manager . XapManagerConfig config = com . gigaspaces . start . manager . XapManagerConfig . parse ( "host" ) ; "<AssertPlaceHolder>" ; } getHost ( ) { return host ; }
org . junit . Assert . assertEquals ( "host" , config . getHost ( ) )
When_explicit_inject_pojo_into_wire_injectinherited_false_annotated_pojo_Then_should_NOT_inject_into_superclass_fields ( ) { class InjectedPojo { } class PojoSuper { @ com . artemis . annotations . Wire public InjectedPojo testManager ; } @ com . artemis . annotations . Wire ( injectInherited = false ) class Pojo exten...
org . junit . Assert . assertNull ( pojo . testManager )
testParseSimpleWithDecimals ( ) { java . lang . String source = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "23;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "43;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "63}" ; org . apache . commons . math4 . linear . ArrayRealVector expected = new org . apache . commons . math4 ....
org . junit . Assert . assertEquals ( expected , actual )
testDoGetAuthorizationInfo ( ) { sut . doGetAuthorizationInfo ( testPrincCollection ) ; "<AssertPlaceHolder>" ; } doGetAuthorizationInfo ( org . jsecurity . subject . PrincipalCollection ) { return null ; }
org . junit . Assert . assertTrue ( true )
shouldConvertTagToBytesAndBackToEquivalentTag ( ) { com . mpatric . mp3agic . ID3v1 id3tag = new com . mpatric . mp3agic . ID3v1Tag ( ) ; id3tag . setTrack ( "5" ) ; id3tag . setArtist ( "ARTIST" ) ; id3tag . setTitle ( "TITLE" ) ; id3tag . setAlbum ( "ALBUM" ) ; id3tag . setYear ( "1997" ) ; id3tag . setGenre ( 13 ) ;...
org . junit . Assert . assertEquals ( id3tag , id3tagCopy )
testListBySourceEntitlement ( ) { org . candlepin . model . Pool sourcePool = org . candlepin . test . TestUtil . createPool ( owner , product ) ; poolCurator . create ( sourcePool ) ; org . candlepin . model . Entitlement e = new org . candlepin . model . Entitlement ( sourcePool , consumer , owner , 1 ) ; e . setId (...
org . junit . Assert . assertEquals ( 2 , poolCurator . listBySourceEntitlement ( e ) . list ( ) . size ( ) )
testAddProxyCredentials_userUndefined ( ) { java . lang . System . setProperty ( "http.proxyHost" , "http://localhost" ) ; java . lang . System . setProperty ( "http.proxyPassword" , "pass" ) ; java . lang . System . setProperty ( "https.proxyHost" , "https://host.com" ) ; java . lang . System . setProperty ( "https.pr...
org . junit . Assert . assertNull ( credentials )
test_TestObject_setLongSeq2 ( ) { int [ ] [ ] arr1 = new int [ 2 ] [ 2 ] ; for ( int i = 0 ; i < 2 ; i ++ ) { for ( int j = 0 ; j < 2 ; j ++ ) { arr1 [ i ] [ j ] = ( ( int ) ( ( java . lang . Math . random ( ) ) * 1000 ) ) ; } } org . apache . tuscany . sca . binding . corba . provider . reference . DynaCorbaRequest re...
org . junit . Assert . assertEquals ( arr1 [ i ] [ j ] , arr2 [ i ] [ j ] )
testQueryWithoutQualifiersLabeledRegex3 ( ) { java . lang . String query = "Lin<sp><lab2><sp>is<sp><lab1><sp>and<sp>lin<sp><lab2><sp>is<sp>Angry" ; java . util . List < edu . uci . ics . texera . api . tuple . Tuple > exactResults = edu . uci . ics . texera . dataflow . regexmatcher . RegexMatcherTestHelper . getQueryR...
org . junit . Assert . assertTrue ( edu . uci . ics . texera . api . utils . TestUtils . attributeEquals ( expectedResults , exactResults , attributeNames ) )
two_$parent_field_comparison_returns_true_when_expression_true ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'field':'field6.nf1.$parent.$parent.field4','op':'>','rfield':'field6.nf1.$parent.$parent.field3'}" ) ; com . redhat...
org . junit . Assert . assertTrue ( ctx . getResult ( ) )
save ( ) { final org . uberfire . backend . vfs . Path returnPath = service . save ( this . path , new org . drools . workbench . screens . scenariosimulation . model . ScenarioSimulationModel ( ) , new org . guvnor . common . services . shared . metadata . model . Metadata ( ) , "Commit<sp>comment" ) ; "<AssertPlaceHo...
org . junit . Assert . assertNotNull ( returnPath )
testThreadGroupInterrupted ( ) { com . blazemeter . jmeter . control . VirtualUserController vuc = new com . blazemeter . jmeter . control . VirtualUserController ( ) ; vuc . addTestElement ( new org . apache . jmeter . sampler . DebugSampler ( ) ) ; com . blazemeter . jmeter . threads . arrivals . ArrivalsThreadGroup ...
org . junit . Assert . assertNull ( vuc . next ( ) )
testPositive ( ) { com . github . anno4j . schema_parsing . model . BuildableRDFSClazz xsdPositiveInt = com . github . anno4j . schema_parsing . validation . XSDValueSpaceValidatorTest . anno4j . createObject ( com . github . anno4j . schema_parsing . model . BuildableRDFSClazz . class , ( ( org . openrdf . model . Res...
org . junit . Assert . assertTrue ( matcher . find ( ) )
testDestroyVolume ( ) { com . iwave . ext . netapp . Volume vol = new com . iwave . ext . netapp . Volume ( com . iwave . ext . netapp . VolumeTest . server , com . iwave . ext . netapp . VolumeTest . VOL_NAME ) ; boolean result = vol . destroyVolume ( false ) ; "<AssertPlaceHolder>" ; } destroyVolume ( boolean ) { net...
org . junit . Assert . assertTrue ( result )
testSetPlacementPriorityReturnsDescriptor ( ) { com . eclipsesource . tabris . ui . Action action = mock ( com . eclipsesource . tabris . ui . Action . class ) ; com . eclipsesource . tabris . internal . ui . ActionDescriptor descriptor = new com . eclipsesource . tabris . internal . ui . ActionDescriptor ( "foo" , act...
org . junit . Assert . assertSame ( descriptor , actualDescriptor )
toLabel_differentday_second_less ( ) { com . psddev . dari . util . Date first = new java . text . SimpleDateFormat ( "yyyy/MM/dd<sp>z<sp>HH:mm:ss" ) . parse ( "2011/05/10<sp>EST<sp>12:45:27" ) ; com . psddev . dari . util . Date second = new java . text . SimpleDateFormat ( "yyyy/MM/dd<sp>z<sp>HH:mm:ss" ) . parse ( "2...
org . junit . Assert . assertEquals ( false , com . psddev . dari . util . DateUtils . isSameDay ( first , second ) )
checkMessageMethod ( ) { java . lang . String str = "test" ; info . smart_tools . smartactors . message_processing_interfaces . ireceiver_generator . exception . ReceiverGeneratorException exception = new info . smart_tools . smartactors . message_processing_interfaces . ireceiver_generator . exception . ReceiverGenera...
org . junit . Assert . assertEquals ( exception . getMessage ( ) , str )
testLogRecordMsgNotFlattened ( ) { com . sap . hcp . cf . logging . common . converter . DefaultMessageConverter jmc = new com . sap . hcp . cf . logging . common . converter . DefaultMessageConverter ( ) ; com . sap . hcp . cf . logging . common . RequestRecord lrec = new com . sap . hcp . cf . logging . common . Requ...
org . junit . Assert . assertThat ( formatMsg ( jmc , lmsg ) , org . hamcrest . core . Is . is ( lmsg ) )
setFetchCount ( ) { timeline . setFetchCount ( book . twju . chapter_3 . Listing_5_Mockito_SessionStoreStub_TimelineTest . NEW_FETCH_COUNT ) ; "<AssertPlaceHolder>" ; } getFetchCount ( ) { return fetchCount ; }
org . junit . Assert . assertEquals ( book . twju . chapter_3 . Listing_5_Mockito_SessionStoreStub_TimelineTest . NEW_FETCH_COUNT , timeline . getFetchCount ( ) )
testRecursionsFailure ( ) { "<AssertPlaceHolder>" ; } doRecursions ( boolean ) { final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 1 ) ; final java . util . concurrent . atomic . AtomicReference < java . lang . Error > error = new java . util . concurrent . atomic ....
org . junit . Assert . assertTrue ( doRecursions ( false ) )
sort_string_array_in_java_with_guava_by_length ( ) { com . google . common . collect . Ordering < java . lang . String > byLengthOrdering = new com . google . common . collect . Ordering < java . lang . String > ( ) { public int compare ( java . lang . String left , java . lang . String right ) { return com . google . ...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "Wyalusing<sp>State<sp>Park" , "Mill<sp>Bluff<sp>State<sp>Park" , "Roche-A-Cri<sp>State<sp>Park" , "Willow<sp>River<sp>State<sp>Park" , "Amnicon<sp>Falls<sp>State<sp>Park" , "Big<sp>Foot<sp>Beach<sp>State<sp>Park" } , wiStateParks )
exifOrientation2 ( ) { javax . imageio . ImageReader reader = javax . imageio . ImageIO . getImageReadersByFormatName ( "jpg" ) . next ( ) ; reader . setInput ( javax . imageio . ImageIO . createImageInputStream ( new java . io . File ( "test-resources/Exif/orientation_2.jpg" ) ) ) ; net . coobird . thumbnailator . uti...
org . junit . Assert . assertEquals ( net . coobird . thumbnailator . util . exif . Orientation . typeOf ( 2 ) , orientation )
no ( ) { this . confirm = true ; clickOn ( "show" ) ; clickOn ( org . pdfsam . i18n . DefaultI18nContext . getInstance ( ) . i18n ( "No" ) ) ; "<AssertPlaceHolder>" ; } i18n ( java . lang . String ) { return i18n . tr ( input ) ; }
org . junit . Assert . assertFalse ( this . confirm )
push ( ) { stk . push ( 1 ) ; stk . push ( 2 ) ; stk . push ( Integer . MAX_VALUE ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . length ; }
org . junit . Assert . assertEquals ( 3 , stk . size ( ) )
testString ( ) { java . lang . Class < com . j256 . ormlite . field . types . StringTypeTest . LocalString > clazz = com . j256 . ormlite . field . types . StringTypeTest . LocalString . class ; com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . StringTypeTest . LocalString , java . lang . Object...
org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) )
testGetDeploymentJpgResourceData ( ) { org . camunda . bpm . engine . rest . Resource resource = org . camunda . bpm . engine . rest . helper . MockProvider . createMockDeploymentJpgResource ( ) ; org . camunda . bpm . engine . rest . List < org . camunda . bpm . engine . rest . Resource > resources = new org . camunda...
org . junit . Assert . assertNotNull ( responseContent )
setContext_other_contextIsSet ( ) { java . lang . String readingContext = "Other" ; sampledValue . setContext ( readingContext ) ; "<AssertPlaceHolder>" ; } getContext ( ) { return context ; }
org . junit . Assert . assertThat ( sampledValue . getContext ( ) , org . hamcrest . CoreMatchers . equalTo ( readingContext ) )
testListApplyWithNullValueAndNullOption ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "test" , "name" , "<name:{n<sp>|<sp><n>};<sp>null=\"n/a\">" ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; st . add ( "name" , "Ter...
org . junit . Assert . assertEquals ( expected , result )
testGetReceiveMessageGaps_NoGaps ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { net . xenqtt . client . PublishMessage message = new net . xenqtt . client . PublishMessage ( "a/b/c" , net . xenqtt . message . QoS . AT_MOST_ONCE , createPayload ( i ) ) ; stats . messageReceived ( message ) ; } "<AssertPlaceHolder>" ; } getRe...
org . junit . Assert . assertTrue ( stats . getReceivedMessageGaps ( ) . isEmpty ( ) )
postLinkerArgumentsExistWhenPassed ( ) { com . facebook . buck . core . rules . ActionGraphBuilder graphBuilder = new com . facebook . buck . core . rules . resolver . impl . TestActionGraphBuilder ( ) ; com . facebook . buck . core . model . BuildTarget target = com . facebook . buck . core . model . BuildTargetFactor...
org . junit . Assert . assertEquals ( expectedSharedNativeLinkableInput , actualSharedNativeLinkableInput )