input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
location ( ) { com . eclipsesource . json . ParseException exception = new com . eclipsesource . json . ParseException ( "Foo" , location ) ; "<AssertPlaceHolder>" ; } getLocation ( ) { int offset = ( ( bufferOffset ) + ( index ) ) - 1 ; int column = ( offset - ( lineOffset ) ) + 1 ; return new com . eclipsesource . js...
org . junit . Assert . assertSame ( location , exception . getLocation ( ) )
testCompareNegNeg2 ( ) { byte [ ] aBytes = new byte [ ] { 10 , 20 , 30 , 40 , 50 , 60 , 70 , 10 , 20 , 30 } ; byte [ ] bBytes = new byte [ ] { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; int aSign = - 1 ; int bSign = - 1 ; java . math . BigInteger aNumber = new java . math . BigInteger (...
org . junit . Assert . assertEquals ( 1 , aNumber . compareTo ( bNumber ) )
shouldSearchAndReturnNothingIfTagDoesNotMatchEvenIfQueryDoes ( ) { executeDataSet ( org . openmrs . module . webservices . rest . web . v1_0 . controller . openmrs1_9 . LocationController1_9Test . LOCATION_TAG_INITIAL_XML ) ; org . springframework . mock . web . MockHttpServletRequest req = request ( RequestMethod . GE...
org . junit . Assert . assertEquals ( 0 , hits . size ( ) )
testFalseLegeGeslachtsaanduidingVerzoek ( ) { org . mockito . Mockito . when ( persoon . getGeslachtsaanduiding ( ) ) . thenReturn ( Geslachtsaanduiding . VROUW ) ; final nl . bzk . migratiebrp . bericht . model . sync . impl . VerwerkToevalligeGebeurtenisVerzoekBericht verzoek = new nl . bzk . migratiebrp . bericht . ...
org . junit . Assert . assertFalse ( subject . controleer ( persoon , verzoek ) )
textDB_9_bnode_subject_bound_first ( ) { org . apache . jena . query . text . Dataset ds = create ( ) ; org . apache . jena . query . text . TestTextNonTxn . dataTurtle ( ds , org . apache . jena . atlas . lib . StrUtils . strjoinNL ( "PREFIX<sp>rdfs:<sp><http://www.w3.org/2000/01/rdf-schema#>" , "[]<sp>a<sp><http://ex...
org . junit . Assert . assertEquals ( 1 , x . size ( ) )
testCreateDiffDate ( ) { new com . bugquery . serverside . dbparsing . dbupdating . XMLDiffer ( getClass ( ) . getClassLoader ( ) . getResource ( "old.xml" ) . getPath ( ) , getClass ( ) . getClassLoader ( ) . getResource ( "new.xml" ) . getPath ( ) , ( ( getClass ( ) . getClassLoader ( ) . getResource ( "" ) . getPath...
org . junit . Assert . assertEquals ( line1 , line2 )
basicTest ( ) { com . xiaomi . linden . thrift . common . LindenSearchRequest request = new com . xiaomi . linden . thrift . common . LindenSearchRequest ( ) . setQuery ( com . xiaomi . linden . thrift . builder . query . LindenQueryBuilder . buildTermQuery ( "title" , "lucene" ) ) ; com . xiaomi . linden . thrift . co...
org . junit . Assert . assertEquals ( 4 , result . getTotalHits ( ) )
testSetCustomCommandName ( ) { org . apache . ambari . server . orm . entities . HostRoleCommandEntity entity = new org . apache . ambari . server . orm . entities . HostRoleCommandEntity ( ) ; entity . setCustomCommandName ( "foo" ) ; "<AssertPlaceHolder>" ; } getCustomCommandName ( ) { return customCommandName ; }
org . junit . Assert . assertEquals ( "foo" , entity . getCustomCommandName ( ) )
test46_1 ( ) { java . lang . String code = "a<sp>=<sp>[11,<sp>22,<sp>33]\n" ; java . lang . String expected = "MSIZE<sp>32<sp>ADD<sp>MSIZE<sp>DUP<sp>32<sp>ADD<sp>11<sp>SWAP<sp>MSTORE<sp>DUP<sp>64<sp>ADD<sp>22<sp>SWAP<sp>MSTORE<sp>DUP<sp>96<sp>ADD<sp>33<sp>SWAP<sp>MSTORE<sp>128<sp>SWAP<sp>MSTORE" ; java . lang . String ...
org . junit . Assert . assertEquals ( expected , asmResult )
testNonExistingReturnsNull ( ) { int testTopics = 50 ; java . lang . String [ ] args = new java . lang . String [ ] { "--topics=" + testTopics , "--run_cfg=src/main/resources/configuration/UnitTestConfig.cfg" } ; cc . mallet . configuration . LDACommandLineParser cp = new cc . mallet . configuration . LDACommandLinePar...
org . junit . Assert . assertTrue ( ( dontExist == null ) )
testSetMaxBondOrder_IBond_Order ( ) { org . openscience . cdk . interfaces . IAtomType at = ( ( org . openscience . cdk . interfaces . IAtomType ) ( newChemObject ( ) ) ) ; at . setMaxBondOrder ( IBond . Order . TRIPLE ) ; "<AssertPlaceHolder>" ; } getMaxBondOrder ( ) { return maxBondOrder ; }
org . junit . Assert . assertEquals ( IBond . Order . TRIPLE , at . getMaxBondOrder ( ) )
testValidLayouter ( ) { org . eclipse . gef . cloudio . internal . ui . TagCloudViewer viewer = new org . eclipse . gef . cloudio . internal . ui . TagCloudViewer ( cloud ) ; org . eclipse . gef . cloudio . internal . ui . layout . DefaultLayouter layouter = new org . eclipse . gef . cloudio . internal . ui . layout . ...
org . junit . Assert . assertEquals ( layouter , viewer . getLayouter ( ) )
testNoMatch07 ( ) { boolean matchResult = resultNamePatternMatcher . matchesEndToEnd ( "a.b.c" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; }
org . junit . Assert . assertFalse ( matchResult )
testGetChanges ( ) { classUnderTest . setChanges ( null ) ; "<AssertPlaceHolder>" ; } getChanges ( ) { return changes ; }
org . junit . Assert . assertNull ( classUnderTest . getChanges ( ) )
testBuildInt_03 ( ) { org . apache . jena . sparql . sse . Item item = org . apache . jena . sparql . sse . SSE . parseItem ( "_" ) ; int i = org . apache . jena . sparql . sse . builders . BuilderNode . buildInt ( item , 23 ) ; "<AssertPlaceHolder>" ; } buildInt ( org . apache . jena . sparql . sse . Item , int ) { ja...
org . junit . Assert . assertEquals ( 23 , i )
findOldestUserAssignmentForPeriod_NoAssignmentInPeriod ( ) { java . util . List < org . oscm . billingservice . business . calculation . revenue . model . UserAssignment > userAssignments = new java . util . ArrayList < org . oscm . billingservice . business . calculation . revenue . model . UserAssignment > ( ) ; user...
org . junit . Assert . assertNull ( result )
testCancelOnViolationDefault ( ) { org . databene . contiperf . junit . ContiPerfRuleTest . TestBean test = new org . databene . contiperf . junit . ContiPerfRuleTest . TestBean ( ) ; try { check ( test , "cancelOnViolationDefault" ) ; } catch ( org . databene . contiperf . junit . PerformanceRequirementFailedError e )...
org . junit . Assert . assertEquals ( 3 , count )
testNullListDocumentFragmentToString ( ) { com . couchbase . client . java . subdoc . DocumentFragment fragment = new com . couchbase . client . java . subdoc . DocumentFragment ( "id" , 123L , null , null ) ; java . lang . String expected = "DocumentFragment{id='id',<sp>cas=123,<sp>mutationToken=null}" ; "<AssertPlace...
org . junit . Assert . assertEquals ( expected , fragment . toString ( ) )
testInvalidReturnValues ( ) { java . lang . String action = "$x" ; java . lang . String expecting = action ; org . antlr . test . ErrorQueue equeue = new org . antlr . test . ErrorQueue ( ) ; org . antlr . test . ErrorManager . setErrorListener ( equeue ) ; org . antlr . test . Grammar g = new org . antlr . test . Gram...
org . junit . Assert . assertEquals ( expecting , found )
differentDataStreamSameChain ( ) { org . apache . flink . test . streaming . runtime . util . TestListResultSink < java . lang . String > resultSink = new org . apache . flink . test . streaming . runtime . util . TestListResultSink ( ) ; org . apache . flink . streaming . api . environment . StreamExecutionEnvironment...
org . junit . Assert . assertEquals ( expected , result )
testFindByShortNameWithNoSuchRecord ( ) { org . eurekastreams . server . domain . DomainGroupEntity actual = jpaGroupMapper . findByShortName ( "nosuchgroup" ) ; "<AssertPlaceHolder>" ; } findByShortName ( java . lang . String ) { javax . persistence . Query q = getEntityManager ( ) . createQuery ( "from<sp>DomainGroup...
org . junit . Assert . assertNull ( actual )
testFormatUpTime ( ) { com . sun . mail . util . logging . CollectorFormatter f = new com . sun . mail . util . logging . CollectorFormatter ( "{12}" , ( ( java . util . logging . Formatter ) ( null ) ) , ( ( com . sun . mail . util . logging . Comparator < com . sun . mail . util . logging . LogRecord > ) ( null ) ) )...
org . junit . Assert . assertFalse ( up . equals ( f . getTail ( ( ( com . sun . mail . util . logging . Handler ) ( null ) ) ) ) )
testGetParametersWithDefaultEntityAndDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . optype . OperationType entity = new org . lnu . is . domain . optype . OperationType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new ja...
org . junit . Assert . assertEquals ( expected , actual )
testAllowsContextWithoutCreateMethod ( ) { jdave . runner . SpecRunnerTest . SpecForOtherCreations . whenCreateDoesNotExist = 0 ; runner . run ( jdave . runner . SpecRunnerTest . SpecForOtherCreations . class , new jdave . SpecVisitorAdapter ( new jdave . ResultsAdapter ( ) ) ) ; "<AssertPlaceHolder>" ; } run ( java . ...
org . junit . Assert . assertEquals ( 1 , jdave . runner . SpecRunnerTest . SpecForOtherCreations . whenCreateDoesNotExist )
testSetUtilIntersection ( ) { short [ ] data1 = new short [ ] { 0 , 2 , 4 , 6 , 8 , 10 , 12 , 14 , 16 , 18 } ; java . nio . ShortBuffer b1 = java . nio . ShortBuffer . wrap ( data1 ) ; short [ ] data2 = new short [ ] { 0 , 3 , 6 , 9 , 12 , 15 , 18 } ; java . nio . ShortBuffer b2 = java . nio . ShortBuffer . wrap ( data...
org . junit . Assert . assertTrue ( org . roaringbitmap . buffer . Arrays . equals ( expectedresult , result ) )
shouldInvalidateAlreadyAcceptedTechnology ( ) { given ( technology . getId ( ) ) . willReturn ( 101L ) ; given ( techDataDefinition . get ( 101L ) ) . willReturn ( existingTechnology ) ; given ( technology . getStringField ( TechnologyFields . STATE ) ) . willReturn ( TechnologyState . ACCEPTED . getStringValue ( ) ) ;...
org . junit . Assert . assertFalse ( isValid )
getAttributeNamespace ( ) { java . lang . String expected = "expected" ; int index = 10 ; when ( this . reader . getAttributeNamespace ( index ) ) . thenReturn ( expected ) ; java . lang . String result = this . filter . getAttributeNamespace ( index ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertSame ( expected , result )
testSection33UpdatedExample4 ( ) { org . apache . abdera . i18n . iri . IRI uri = org . apache . abdera . test . parser . stax . FeedValidatorTest . baseURI . resolve ( "3.3/updated-example4.xml" ) ; org . apache . abdera . model . Document < org . apache . abdera . model . Feed > doc = parse ( uri ) ; org . apache . a...
org . junit . Assert . assertNotNull ( feed )
testNotDuplicatedDisplayedMnemonic ( ) { es . gob . afirma . ui . wizardmultifirmamasiva . PanelEntradaAccessibilityTest . logger . info ( "testNotDuplicatedDisplayedMnemonic" ) ; try { final es . gob . afirma . ui . wizardmultifirmamasiva . PanelEntrada panelEntrada = new es . gob . afirma . ui . wizardmultifirmamasiv...
org . junit . Assert . assertTrue ( ( ( keyCodesSet . size ( ) ) == ( keyCodes . size ( ) ) ) )
copyReaderValidWriter ( ) { java . lang . String probe = "A<sp>string<sp>⍅ï" ; java . io . StringWriter writer = new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseStringWriter ( ) ; org . apache . maven . shared . utils . io . IOUtil . copy ( new java . io . StringReader ( probe ) , writer ) ; "<As...
org . junit . Assert . assertThat ( writer . toString ( ) , org . hamcrest . CoreMatchers . is ( probe ) )
testTakeWhileNNoMatch ( ) { final org . apache . calcite . linq4j . Queryable < org . apache . calcite . linq4j . test . Linq4jTest . Department > queryableDepts = org . apache . calcite . linq4j . Linq4j . asEnumerable ( org . apache . calcite . linq4j . test . Linq4jTest . depts ) . asQueryable ( ) ; org . apache . c...
org . junit . Assert . assertEquals ( 0 , deptList . size ( ) )
getStatus ( ) { org . searchisko . api . rest . IndexerRestService tested = org . mockito . Mockito . mock ( org . searchisko . api . rest . IndexerRestService . class ) ; tested . log = java . util . logging . Logger . getLogger ( "testlogger" ) ; java . util . Map < java . lang . String , java . lang . Object > ic = ...
org . junit . Assert . assertEquals ( "sys<sp>info" , tested . getStatus ( "my_type" ) )
getNodeForMultipleItemsTest ( ) { java . util . List < org . kaaproject . kaa . server . common . zk . gen . OperationsNodeInfo > nodes = createNodeListWithThreeItems ( ) ; org . kaaproject . kaa . server . hash . ConsistentHashResolver consistentHashResolver = new org . kaaproject . kaa . server . hash . ConsistentHas...
org . junit . Assert . assertEquals ( nodes . get ( 0 ) , returnedNode )
debieraCrearSalida ( ) { mx . edu . um . mateo . inventario . web . Organizacion organizacion = new mx . edu . um . mateo . inventario . web . Organizacion ( "apPaterno" 1 , "apPaterno" 7 , "apPaterno" 7 ) ; currentSession ( ) . save ( organizacion ) ; mx . edu . um . mateo . inventario . web . Empresa empresa = new mx...
org . junit . Assert . assertNotNull ( id )
testCopyOfCollection ( ) { java . util . Collection < java . lang . String > collection = asSet ( "Hello" ) ; "<AssertPlaceHolder>" ; } copyOf ( java . util . Collection ) { return new org . kocakosm . pitaya . collection . ImmutableSet < E > ( new java . util . LinkedHashSet < E > ( c ) ) ; }
org . junit . Assert . assertEquals ( collection , org . kocakosm . pitaya . collection . ImmutableSet . copyOf ( collection ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . asset . list . model . AssetListEntrySegmentsEntryRel . class , _dynamicQueryClassLoader ) ; dynamicQuery...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
applicationExtensionTest ( ) { com . sun . enterprise . config . serverbeans . Application a = habitat . getService ( com . sun . enterprise . config . serverbeans . Application . class ) ; java . util . List < com . sun . enterprise . configapi . tests . extensibility . AnApplicationExtension > taes = a . getExtension...
org . junit . Assert . assertEquals ( taes . size ( ) , 2 )
encodingClassesOptionalPresent ( ) { final io . trane . ndbc . Config c = io . trane . ndbc . Config . create ( dataSourceSupplierClass , host , port , user ) ; final java . util . Set < java . lang . String > encodingClasses = new java . util . HashSet ( ) ; encodingClasses . add ( "some.Class" ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( java . util . Optional . of ( encodingClasses ) , c . encodingClasses ( java . util . Optional . of ( encodingClasses ) ) . encodingClasses ( ) )
testJsApiSignature ( ) { java . lang . String signature = weixin . jsapiSignature ( "http://openlaw.cn" , new java . util . Date ( ) . getTime ( ) , org . apache . commons . lang . RandomStringUtils . randomAlphanumeric ( 16 ) ) ; "<AssertPlaceHolder>" ; com . belerweb . social . weixin . api . WeixinTest . logger . in...
org . junit . Assert . assertNotNull ( signature )
test ( ) { final com . abubusoft . kripton . common . One < java . lang . String > result = new com . abubusoft . kripton . common . One < java . lang . String > ( "" ) ; io . reactivex . Observable < java . lang . String > observer = io . reactivex . Observable . just ( "Hello" ) ; observer . subscribe ( new io . reac...
org . junit . Assert . assertTrue ( result . value0 . equals ( "Hello" ) )
testApply ( ) { com . liferay . dynamic . data . mapping . form . evaluator . internal . function . SumFunction sumFunction = new com . liferay . dynamic . data . mapping . form . evaluator . internal . function . SumFunction ( ) ; java . math . BigDecimal result = sumFunction . apply ( new java . math . BigDecimal [ ]...
org . junit . Assert . assertEquals ( new java . math . BigDecimal ( 6 ) , result )
test ( ) { com . hp . mwtests . ts . jts . orbspecific . resources . ExplicitStackImple stack = new com . hp . mwtests . ts . jts . orbspecific . resources . ExplicitStackImple ( ) ; com . arjuna . ats . internal . jts . OTSImpleManager . current ( ) . begin ( ) ; "<AssertPlaceHolder>" ; com . arjuna . ats . internal ....
org . junit . Assert . assertEquals ( stack . push ( 10 , com . arjuna . ats . internal . jts . OTSImpleManager . current ( ) . get_control ( ) ) , 0 )
testEmptyParseTreesAreEqual ( ) { java . util . Comparator < org . apache . accumulo . core . security . ColumnVisibility . Node > comparator = new org . apache . accumulo . core . security . ColumnVisibility . NodeComparator ( new byte [ ] { } ) ; org . apache . accumulo . core . security . ColumnVisibility . Node emp...
org . junit . Assert . assertEquals ( 0 , comparator . compare ( empty , parse ( "" ) ) )
testHasValueOnNullValue ( ) { "<AssertPlaceHolder>" ; } hasValue ( T ) { return com . annimon . stream . test . hamcrest . OptionalMatcher . hasValueThat ( org . hamcrest . CoreMatchers . is ( object ) ) ; }
org . junit . Assert . assertThat ( null , com . annimon . stream . test . hamcrest . OptionalMatcher . hasValue ( "" ) )
getChild_existingChild_returnsChild ( ) { E parent = createNodeWithChildren ( 5 ) ; for ( int childIndex = 0 ; childIndex < 5 ; childIndex ++ ) { java . util . Optional < E > proclaimedChild = navigator . getChild ( parent , childIndex ) ; E child = getChildOfParent ( parent , childIndex ) ; "<AssertPlaceHolder>" ; } }...
org . junit . Assert . assertSame ( child , proclaimedChild . get ( ) )
toStringTest ( ) { com . aliyuncs . http . HttpRequest request = new com . aliyuncs . http . HttpRequest ( "testURL" ) ; java . lang . String res = request . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return protocol ; }
org . junit . Assert . assertTrue ( res . contains ( "testURL" ) )
testIsEmpty ( ) { org . apache . jackrabbit . oak . spi . security . authorization . accesscontrol . AbstractAccessControlList acl = createACL ( createTestEntries ( ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return options . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( acl . isEmpty ( ) )
getSupportedIndicators ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveIndicatorCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveIndicatorCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_INDICATOR ) ) ) ; org . openhab . ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
shouldSetTheThresholdLimitTo0IfNegative ( ) { smartrics . rest . fitnesse . fixture . support . Config config = smartrics . rest . fitnesse . fixture . support . Config . getConfig ( "foo" ) ; config . add ( JavascriptWrapper . THRESHOLD_PROP_NAME , "-1" ) ; javascriptWrapper . setOptimisationThresholdValue ( config ) ...
org . junit . Assert . assertThat ( javascriptWrapper . getThresholdLimit ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 0L ) ) )
shouldAcceptMinOnly ( ) { com . couchbase . client . java . search . queries . TermRangeQuery fts = com . couchbase . client . java . search . SearchQuery . termRange ( ) . min ( "lower" ) ; com . couchbase . client . java . search . SearchQuery query = new com . couchbase . client . java . search . SearchQuery ( "foo"...
org . junit . Assert . assertEquals ( expected , query . export ( ) )
readData_NoFile ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( false ) ; info = cameraReader . readData ( traceFolder , 0 , 0 ) ; "<AssertPlaceHolder>" ; } size ( ) { return sessionTable . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( info . size ( ) ) == 0 ) )
testCreateSpacer ( ) { de . jonato . jfxc . controls . spacer . HGrowSpace hGrowSpace = new de . jonato . jfxc . controls . spacer . HGrowSpace ( ) ; de . jonato . jfxc . controls . spacer . HFixedSpace hFixedSpace = new de . jonato . jfxc . controls . spacer . HFixedSpace ( 15 ) ; de . jonato . jfxc . controls . space...
org . junit . Assert . assertTrue ( true )
loadSrcDocTestWithExcludeFileOption ( ) { include = com . google . common . collect . ImmutableList . of ( "**/**StringResource_en_US*" ) ; exclude = com . google . common . collect . ImmutableList . of ( "**/*StringResource*" ) ; when ( mockPushOption . getTransDir ( ) ) . thenReturn ( sourceDir ) ; when ( mockPushOpt...
org . junit . Assert . assertEquals ( 0 , resourceList . size ( ) )
testConvertAmount ( ) { javax . money . CurrencyUnit [ ] units = new javax . money . CurrencyUnit [ ] { javax . money . Monetary . getCurrency ( "CHF" ) , javax . money . Monetary . getCurrency ( "EUR" ) , javax . money . Monetary . getCurrency ( "USD" ) , javax . money . Monetary . getCurrency ( "JPY" ) , javax . mone...
org . junit . Assert . assertEquals ( expected , res )
testGetRejectSchema ( ) { org . talend . components . jdbc . tjdbcoutput . TJDBCOutputProperties properties = new org . talend . components . jdbc . tjdbcoutput . TJDBCOutputProperties ( "output" ) ; properties . init ( ) ; org . apache . avro . Schema schema = org . talend . components . jdbc . CommonUtils . getReject...
org . junit . Assert . assertNotNull ( schema )
propertyKeyWordButNotProperty ( ) { java . lang . String script = "public<sp>void<sp>function<sp>onPopulateError(<sp>any<sp>cfc,<sp>string<sp>property,<sp>struct<sp>rc<sp>){}" ; cfml . CFSCRIPTParser . ScriptBlockContext scriptStatement = parseScript ( script ) ; if ( ( fCfmlParser . getMessages ( ) . size ( ) ) > 0 ) ...
org . junit . Assert . assertNotNull ( scriptStatement )
canGetAccessPolicyFromLocator ( ) { com . microsoft . windowsazure . services . media . models . LocatorInfo locator = service . create ( com . microsoft . windowsazure . services . media . models . Locator . create ( com . microsoft . windowsazure . services . media . LocatorIntegrationTests . accessPolicyInfo . getId...
org . junit . Assert . assertEquals ( com . microsoft . windowsazure . services . media . LocatorIntegrationTests . accessPolicyInfo . getId ( ) , accessPolicy . getId ( ) )
testZSS275 ( ) { final java . lang . String filename = "book/pasteTest.xlsx" ; org . zkoss . zss . api . model . Book workbook = org . zkoss . zss . Util . loadBook ( this , filename ) ; org . zkoss . zss . api . model . Sheet sheet1 = workbook . getSheet ( "Sheet1" ) ; org . zkoss . zss . api . Range rangeA = org . zk...
org . junit . Assert . assertEquals ( 10 , rangeA . getRow ( ) )
testDocumentIterator ( ) { try ( java . io . InputStream in = getJsonStream ( "org/ojai/test/data/multidocument.json" ) ; org . ojai . DocumentStream stream = org . ojai . json . Json . newDocumentStream ( in ) ) { int documentCount = 0 ; java . util . Iterator < org . ojai . Document > it = stream . iterator ( ) ; org...
org . junit . Assert . assertEquals ( 4 , documentCount )
testNoImageTargetIsFound ( ) { org . sikuli . api . Target t = new org . sikuli . api . ImageTarget ( getClass ( ) . getResource ( "chicken.png" ) ) ; java . util . List < org . sikuli . api . ScreenRegion > results = testScreenRegion . findAll ( t ) ; "<AssertPlaceHolder>" ; } findAll ( org . sikuli . api . Target ) {...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
testHandleCallResize ( ) { org . eclipse . rap . rwt . testfixture . internal . Fixture . fakePhase ( PhaseId . PROCESS_ACTION ) ; org . eclipse . rap . json . JsonObject properties = new org . eclipse . rap . json . JsonObject ( ) . add ( "width" , 123 ) ; handler . handleCall ( "resize" , properties ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( 123 , column . getWidth ( ) )
testSerialization ( ) { org . jfree . chart . renderer . xy . XYLineAndShapeRenderer r1 = new org . jfree . chart . renderer . xy . XYLineAndShapeRenderer ( ) ; org . jfree . chart . renderer . xy . XYLineAndShapeRenderer r2 = ( ( org . jfree . chart . renderer . xy . XYLineAndShapeRenderer ) ( org . jfree . chart . Te...
org . junit . Assert . assertEquals ( r1 , r2 )
testCalculateUniquenessRatio ( ) { de . metanome . backend . result_postprocessing . result_ranking . BasicStatisticRanking ranking = new de . metanome . backend . result_postprocessing . result_ranking . BasicStatisticRanking ( basicStatisticResults , tableInformationMap ) ; de . metanome . backend . result_postproces...
org . junit . Assert . assertEquals ( 1.0 , result . getUniquenessRatio ( ) , 0.0 )
testCompareToGreaterThanZero ( ) { org . bff . javampd . MPDItem item1 = new org . bff . javampd . album . MPDAlbum ( "Album2" , "Artist1" ) ; org . bff . javampd . MPDItem item2 = new org . bff . javampd . album . MPDAlbum ( "Album1" , "Artist1" ) ; "<AssertPlaceHolder>" ; } compareTo ( org . bff . javampd . MPDItem )...
org . junit . Assert . assertTrue ( ( ( item1 . compareTo ( item2 ) ) > 0 ) )
testGetFragmentCollectionsCountByKeywords ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group . getGroupId ( ) , com . liferay . portal . kernel . test . util . TestPropsValues . getUserId (...
org . junit . Assert . assertEquals ( actualFragmentEntries . toString ( ) , 2 , actualFragmentEntries . size ( ) )
testSchoolStaffToLEAStaffAssociation ( ) { setupCurrentUser ( staff2 ) ; org . slc . sli . api . security . context . validator . Set < java . lang . String > staffId = new org . slc . sli . api . security . context . validator . HashSet < java . lang . String > ( org . slc . sli . api . security . context . validator ...
org . junit . Assert . assertFalse ( validator . validate ( EntityNames . STAFF , staffId ) . equals ( staffId ) )
testFedSoberUncomplimentedKing ( ) { final com . iluwatar . servant . King king = new com . iluwatar . servant . King ( ) ; king . getFed ( ) ; king . changeMood ( ) ; "<AssertPlaceHolder>" ; } getMood ( ) { return isHappy ; }
org . junit . Assert . assertFalse ( king . getMood ( ) )
testSize002 ( ) { java . lang . String test = "CN=commonName,L=localityName,ST=stateOrProvinceName,O=organizationName,OU=organizationalUnitName,C=countryName,STREET=streetAddress,DC=domainComponent,UID=userid" ; javax . naming . ldap . LdapName ln = new javax . naming . ldap . LdapName ( test ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( 9 , ln . size ( ) )
encryptDecyrptShortString ( ) { options . setEncryptPassword ( "password" ) ; java . lang . String encryptMe = "1" ; java . io . InputStream decrypted = encryption . decrypt ( encryption . encrypt ( encryptMe . getBytes ( "UTF-8" ) ) ) ; java . lang . String decryptedString = new java . lang . String ( encryption . toB...
org . junit . Assert . assertThat ( decryptedString , org . hamcrest . core . Is . is ( encryptMe ) )
testWithInjectionFactoryChain ( ) { java . lang . Object actual = new com . picocontainer . PicoBuilder ( SDI ( ) ) . withBehaviors ( caching ( ) , synchronizing ( ) , implementationHiding ( ) ) . build ( ) ; java . lang . Object expected = new com . picocontainer . DefaultPicoContainer ( parent , lifecycle , ncm , new...
org . junit . Assert . assertEquals ( toXml ( expected ) , toXml ( actual ) )
testSetJson ( ) { final com . allanbank . mongodb . Durability durability = com . allanbank . mongodb . Durability . replicaDurable ( true , "myMode" , 1234567 ) ; final com . allanbank . mongodb . DurabilityEditor editor = new com . allanbank . mongodb . DurabilityEditor ( ) ; editor . setAsText ( durability . asDocum...
org . junit . Assert . assertThat ( editor . getValue ( ) , org . hamcrest . CoreMatchers . is ( ( ( java . lang . Object ) ( durability ) ) ) )
testListedResourcesWithGet ( ) { java . util . Map < java . lang . String , java . lang . String > params = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; params . put ( "jobName" , "job2" ) ; params . put ( "jobInstanceId" , "0" ) ; params . put ( "jobExecutionId" , "0" ) ; params . pu...
org . junit . Assert . assertNotNull ( wrapper )
staticGetTestLoggerClassReturnsSame ( ) { uk . org . lidalia . slf4jtest . TestLogger logger1 = uk . org . lidalia . slf4jtest . TestLoggerFactory . getTestLogger ( java . lang . String . class ) ; uk . org . lidalia . slf4jtest . TestLogger logger2 = uk . org . lidalia . slf4jtest . TestLoggerFactory . getInstance ( )...
org . junit . Assert . assertSame ( logger1 , logger2 )
testFutureString ( ) { server . setHandler ( new org . jboss . resteasy . test . client . jetty . JettyClientEngineTest . EchoHandler ( ) ) ; final java . lang . String valuableData = randomAlpha ( ) ; final java . util . concurrent . Future < java . lang . String > response = client ( ) . target ( baseUri ( ) ) . requ...
org . junit . Assert . assertEquals ( valuableData , result )
convert_array_to_set_guava ( ) { java . lang . String [ ] abcs = new java . lang . String [ ] { "a" , "b" , "c" , "d" } ; java . util . Set < java . lang . String > abcSet = com . google . common . collect . Sets . newConcurrentHashSet ( java . util . Arrays . asList ( abcs ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( ( abcSet . size ( ) ) == 4 ) )
testIsNetowrkASubsetOrSupersetOfNetworkBWithEmptyValues ( ) { "<AssertPlaceHolder>" ; } isNetowrkASubsetOrSupersetOfNetworkB ( java . lang . String , java . lang . String ) { if ( ! ( com . cloud . utils . net . NetUtils . areCidrsNotEmpty ( cidrA , cidrB ) ) ) { return com . cloud . utils . net . NetUtils . SupersetOr...
org . junit . Assert . assertEquals ( SupersetOrSubset . errorInCidrFormat , com . cloud . utils . net . NetUtils . isNetowrkASubsetOrSupersetOfNetworkB ( "" , null ) )
resolveString_returns_givenString_when_nonnullString_is_passed ( ) { java . lang . String idempotencyToken = "120c7d4a-e982-4323-a53e-28989a0a9f26" ; "<AssertPlaceHolder>" ; } resolveString ( java . lang . String ) { return token != null ? token : software . amazon . awssdk . core . util . IdempotentUtils . generator ....
org . junit . Assert . assertEquals ( idempotencyToken , software . amazon . awssdk . core . util . IdempotentUtils . resolveString ( idempotencyToken ) )
testAdapter ( ) { javax . xml . bind . JAXBContext context = javax . xml . bind . JAXBContext . newInstance ( org . apache . tuscany . sca . databinding . jaxb . MyJaxbBean . class , org . apache . tuscany . sca . databinding . jaxb . MyInterfaceImpl . class ) ; java . io . StringWriter writer = new java . io . StringW...
org . junit . Assert . assertTrue ( ( result instanceof org . apache . tuscany . sca . databinding . jaxb . MyJaxbBean ) )
testRandomAveragePoolingFF ( ) { long seed = 123456789 ; int inputSquareSize = 200 ; int inputFeatures = 3 ; int pollingAreaSquareSize = 5 ; int batchSize = 2 ; int stride = 1 ; int paddingSize = 0 ; com . github . neuralnetworks . tensor . Tensor seqResult = testRandomAveragePoolingFF ( Runtime . CPU_SEQ , seed , inpu...
org . junit . Assert . assertTrue ( isEqual ( seqResult , openclResult ) )
testSetsDocumentPath ( ) { com . eclipsesource . tabris . tracking . internal . analytics . model . hit . PageViewHit pageViewHit = new com . eclipsesource . tabris . tracking . internal . analytics . model . hit . PageViewHit ( "foo" ) ; java . lang . String documentPath = ( ( java . lang . String ) ( pageViewHit . ge...
org . junit . Assert . assertEquals ( "foo" , documentPath )
testMutationsLine6 ( ) { java . util . List < de . unisb . cs . st . javalanche . mutation . results . Mutation > mutations = de . unisb . cs . st . javalanche . mutation . results . persistence . QueryManager . getMutations ( className , MutationType . REMOVE_CALL , 6 ) ; "<AssertPlaceHolder>" ; } size ( ) { return po...
org . junit . Assert . assertEquals ( 0 , mutations . size ( ) )
testShortObj ( ) { java . lang . Class < com . j256 . ormlite . field . types . ShortObjectTypeTest . LocalShortObj > clazz = com . j256 . ormlite . field . types . ShortObjectTypeTest . LocalShortObj . class ; com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . ShortObjectTypeTest . LocalShortObj...
org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) )
distinct ( ) { super . distinct ( ) ; com . gs . collections . impl . lazy . SelectInstancesOfIterable < java . lang . Double > iterable = new com . gs . collections . impl . lazy . SelectInstancesOfIterable ( com . gs . collections . impl . list . mutable . FastList . newListWith ( 3.0 , 2.0 , 3 , 2.0 , 4.0 , 5 , 1.0 ...
org . junit . Assert . assertEquals ( com . gs . collections . impl . list . mutable . FastList . newListWith ( 3.0 , 2.0 , 4.0 , 1.0 , 5.0 ) , iterable . distinct ( ) . toList ( ) )
testBackendDeleteMetadataRecord ( ) { org . junit . Assume . assumeTrue ( org . apache . jackrabbit . oak . blob . cloud . s3 . S3DataStoreUtils . isS3Configured ( ) ) ; org . apache . jackrabbit . oak . blob . cloud . s3 . S3DataStore s3ds = getDataStore ( ) ; s3ds . addMetadataRecord ( randomStream ( 0 , 10 ) , "name...
org . junit . Assert . assertTrue ( s3ds . deleteMetadataRecord ( "name" ) )
locationMsgTest ( ) { com . github . cjm0000000 . mmt . core . message . process . PassiveMsgProcessor api = context . getApplicationContext ( ) . getBean ( com . github . cjm0000000 . mmt . yixin . api . passive . SimpleYiXinMsgProcessor . class ) ; java . lang . String recvMsg = "<xml><sp><ToUserName>11b09b69e7e169ed...
org . junit . Assert . assertEquals ( result . getContent ( ) , "" )
testUpdateSet ( ) { java . lang . String message = "sets<sp>should<sp>be<sp>set<sp>appropriately" ; final org . eurekastreams . server . domain . DomainGroup group = new org . eurekastreams . server . domain . DomainGroup ( ) ; final org . eurekastreams . server . domain . Person person = new org . eurekastreams . serv...
org . junit . Assert . assertEquals ( message , coords , group . getCoordinators ( ) )
testGetSessionIdWhenClientIdIsMissing ( ) { final java . lang . String clientId = null ; final java . lang . String sessionId = "InvalidSessionId" ; when ( request . getSession ( eq ( true ) ) ) . thenReturn ( httpSession ) ; when ( request . getParameter ( eq ( "clientId" ) ) ) . thenReturn ( clientId ) ; when ( provi...
org . junit . Assert . assertEquals ( sessionId , abstractFileServlet ( ) . getSessionId ( request , provider ) )
violationFileWithParentDirectoryShouldBeCreatedOnVerificationWarn ( ) { new java . io . File ( sortpom . parameter . ViolationFileParameterTest . FILENAME_WITH_DIRECTORIES ) . delete ( ) ; sortpom . util . SortPomImplUtil . create ( ) . verifyFail ( "Warn" ) . violationFile ( sortpom . parameter . ViolationFileParamete...
org . junit . Assert . assertThat ( file . exists ( ) , org . hamcrest . Matchers . is ( true ) )
acceptsExtendingClientObjectFactories ( ) { org . appenders . log4j2 . elasticsearch . bulkprocessor . BulkProcessorFactory emitterFactory = new org . appenders . log4j2 . elasticsearch . bulkprocessor . BulkProcessorFactory ( ) ; boolean result = emitterFactory . accepts ( org . appenders . log4j2 . elasticsearch . bu...
org . junit . Assert . assertTrue ( result )
testVeelTeVeelHaakjes ( ) { final java . lang . String voorwaardeRegel = "(01.03.10<sp>KD1<sp>(19.89.30<sp>-<sp>0063))" ; final java . lang . String expressieVerwacht = "JAAR(geboorte.datum)<sp><<sp>JAAR(VANDAAG()<sp>-<sp>^63/0/0)" ; final java . lang . String expressie = converteerNaarExpressieService . converteerVoor...
org . junit . Assert . assertEquals ( expressieVerwacht , expressie )
emptyRestrictionListShouldNotCauseRestriction ( ) { when ( lockInfo . isLocked ( ) ) . thenReturn ( false ) ; when ( lockService . retrieveLockInfo ( any ( ) ) ) . thenReturn ( lockInfo ) ; when ( identity . getIdentifier ( ) ) . thenReturn ( "123" ) ; when ( lockInfo . lockedBy ( ) ) . thenReturn ( "456" ) ; when ( lo...
org . junit . Assert . assertNull ( result )
testGetPlaatsByPlaatscodeNull ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Plaats plaats = dynamischeStamtabelRepository . getPlaatsByPlaatsNaam ( "Tekst" ) ; "<AssertPlaceHolder>" ; } getPlaatsByPlaatsNaam ( java . lang . String ) { return plaatsRepository . findByKey ( plaatsnaam ) ; }
org . junit . Assert . assertNull ( plaats )
getDeviceIdGets ( ) { final java . lang . String actualDeviceId = "TestDeviceId" ; com . microsoft . azure . sdk . iot . service . FileUploadNotification testFileUploadNotification = new com . microsoft . azure . sdk . iot . service . FileUploadNotification ( actualDeviceId , mockBlobUri , mockBlobName , mockLastUpdate...
org . junit . Assert . assertEquals ( testDeviceId , actualDeviceId )
testTrivial ( ) { java . lang . Class < ? > type = com . github . dozermapper . core . util . MappingUtils . loadClass ( "com.github.dozermapper.core.vo.jaxb.employee.EmployeeType" , new com . github . dozermapper . core . config . BeanContainer ( ) ) ; "<AssertPlaceHolder>" ; } loadClass ( java . lang . String , com ....
org . junit . Assert . assertNotNull ( type )
testDisableDocks ( ) { java . lang . String pId = "p1" ; tested . perspectiveId = pId ; tested . enabled = true ; tested . disableDocks ( ) ; verify ( uberfireDocks , times ( 1 ) ) . hide ( any ( org . uberfire . client . workbench . docks . UberfireDockPosition . class ) , eq ( pId ) ) ; "<AssertPlaceHolder>" ; } isEn...
org . junit . Assert . assertFalse ( tested . isEnabled ( ) )
testValidateUrl ( ) { boolean result = org . oscm . validator . ADMValidator . isUrl ( "http://gmx.de" ) ; "<AssertPlaceHolder>" ; } isUrl ( java . lang . String ) { return org . oscm . validator . ADMValidator . URL_VALIDATOR . isValid ( value ) ; }
org . junit . Assert . assertTrue ( result )
testGetFriendsTimelinePagination ( ) { mockServer . expect ( requestTo ( "https://api.weibo.com/2/statuses/friends_timeline.json?since_id=0&max_id=0&count=10&page=5&base_app=0&feature=0" ) ) . andExpect ( method ( org . springframework . social . weibo . api . impl . GET ) ) . andExpect ( header ( "Authorization" , "OA...
org . junit . Assert . assertEquals ( "" , firstStatus . getText ( ) )
canSelectArbitrarilyShouldReturnTrueWhenJellyBean ( ) { final android . text . method . MovementMethod instance = net . usikkert . kouchat . android . component . LinkMovementMethodWithSelectSupport . getInstance ( ) ; "<AssertPlaceHolder>" ; } canSelectArbitrarily ( ) { return true ; }
org . junit . Assert . assertTrue ( instance . canSelectArbitrarily ( ) )
readData1 ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( new java . lang . String [ ] { "1.413913535177E9<sp>ON" , "...
org . junit . Assert . assertTrue ( ( ( info . size ( ) ) == 1 ) )
lookUpWithId ( ) { org . optaplanner . core . impl . testdata . domain . lookup . TestdataObjectIntegerId object = new org . optaplanner . core . impl . testdata . domain . lookup . TestdataObjectIntegerId ( 1 ) ; lookUpManager . addWorkingObject ( object ) ; "<AssertPlaceHolder>" ; } lookUpWorkingObject ( E ) { if ( e...
org . junit . Assert . assertSame ( object , lookUpManager . lookUpWorkingObject ( new org . optaplanner . core . impl . testdata . domain . lookup . TestdataObjectIntegerId ( 1 ) ) )